#include "stdio.h"
#include
struct w
{
char low;
char high;
};
union u
{
struct w byte;
int word;
}uu;
main()
{
uu.word=0x1234;
printf("Word value:%04x\n",uu.word);
printf("High value:%02x\n",uu.byte.high);
printf("Low value:%02x\n",uu.byte.low);
uu.byte.low=0xff;
printf("Word value:%04x\n",uu.word);
}
1.程序运行结果为:
Word value:1234
High value:12
Low value:34
Word value:12ff
Press any key to continue
====求大侠帮忙解释以上程序每句含义,谢谢