#include int main(int argc, char *args[]) { int x = 10, y = 20; // x and y are integers int *p; // p is a pointer to an integer p = &x; //the value of p is the address of x printf("Part 1:\n"); printf("x = %d\n", x); //value of x printf("p = %d\n", p); //value of p printf("*p = %d\n", *p); //the contents of the location to which p points *p = *p + 1; //add one to the contents of the location to which p points printf("\nPart 2:\n"); printf("x = %d\n", x); printf("p = %d\n", p); printf("*p = %d\n", *p); p = p+1; //add one to p. p now points to a new location. what does p point to? printf("\nPart 3:\n"); printf("x = %d\n", x); printf("p = %d\n", p); printf("*p = %d\n", *p); printf("\nPart 4:\n"); printf("y = %d\n", y); }