#include<stdio.h>
int main(int argc, char *argv[])
{
int num=0x01020304;
short *p2;
char *p;
p=#
p2=#
printf("%#x\n",*(short *)(p+1));
return 0;
}
//1.我以为short是C语言自带的,不需要定义。2.并且p2也需要赋值。
#include<stdio.h>
int main(int argc, char *argv[])
{
int num=0x01020304;
short *p2;
char *p;
p=#
p2=#
printf("%#x\n",*(short *)(p+1));
return 0;
}
//1.我以为short是C语言自带的,不需要定义。2.并且p2也需要赋值。