#include <stdio.h>
int main(int argc, const char * argv[]) {
int a[5] = {11,22,33,44,55};
int *p=a;
int *p1 = p;
printf("*p = %d\n",*p);
printf("*(p+1) = %d\n",*(p+1));
printf("*p = %d\n",*p);
printf("*p+1 = %d\n",*p+1);
//查看地址
printf("*p = %p\n",p);
printf("*(p+1) = %p\n",(p+1));
//(*p++) == (*p+1)
printf("*p++ = %d\n",*p++);
printf("*p+1 = %d\n",*p+1);
return 0;
} |
|