#include<stdio.h>
int main()
{
short *p;
short t = 0x01020304;
p = &t;
printf("p = %#x\n",t);//输出就是0x0304
return 0;
}
#include<stdio.h>
int main()
{
short *p;
short t = 0x01020304;
p = &t;
printf("p = %#x\n",*(p+1));//结果是0
return 0;
}
想要的结果是0x0102怎么也得不到