#include main() { int i, *p, x[5]={10,20,30,40,50}; p=x; /* the address of x[0] is copied to p */ p++; /* p holds the address of x[1] */ printf("%d\n\n", *p); /* prints 20 */ *p=25; /* x[1]=25 */ printf("%d\n\n", x[1]); /* prints 25 */ x[2]=*(--p)+3; /*p points to x[0] and x[2]=13 */ for (i=0; i<5; i++) /* prints all elements and */ printf("%d ",*(p+i)); /* keep p as it is-pointing to x[0] */ printf("\n\n"); for (i=0; i<5; i++) /* prints all elements and */ printf("%d ", *p++); /* change p along */ printf("\n\n"); for (p=x; p<&x[5]; p++) /* prints all elements and */ printf("%d ", *p); /* change p along */ printf("\n\n"); return 0; }