#include <stdio.h>
int main(int argc, char * argv[])
{
int num;
num = 10;
int *p = #
printf("第1个字节地址为:%p,值为:%d\n",p,*p);
printf("第2个字节地址为:%p,值为:%d\n",p+1,*(p+1));
printf("第3个字节地址为:%p,值为:%d\n",p+2,*(p+2));
printf("第4个字节地址为:%p,值为:%d\n",p+3,*(p+3));
getchar();
return 0;
}
|
|