#include <stdio.h> main() { int a[5] = {2,8,7,0,6}; int *p; p = a; printf("the first value is: %d\n",*p); printf("the second value is: %d\n",*(p+1)); printf("the third value is: %d\n",*(p+2)); printf("the forth value is: %d\n",*(p+3)); printf("the fifth value is: %d\n",*(p+4)); printf("\nthe first addr is: %p\n",p); printf("the second addr is: %p\n",p+1); printf("the third addr is: %p\n",p+2); printf("the forth addr is: %p\n",p+3); printf("the fifth value is: %p\n\n",p+4); int i; for (i = 0; i <= 4; i++) printf("a[%d] value is %d, address is: %p\n",i,*(p+i),(p+i)); p += 1; return; }