下面程序的运行结果为:main(){ union{long i;int k;unsigned char s;}abc;abc.i=0x12345678;printf("%x\n",abc.k);printf("%x\n",abc.s);}
查看答案
下面程序的运行结果为:main( ){union bt{int k;char c[2];}a;a.k=-7;printf("%o,%o",a.c[0],a.c[1]);}
已知字符0的ASCII码为十六进制的30,下面程序的输出是___________。main(){ union {unsigned char c;unsignedint i[4];} z;z.i[0]=0x39;z.i[1]=0x36;printf("%c\n",z.c);}
有如下的说明:union test{ int a; char c; }test1;则在VC环境下sizeof(union test) 的结果是______。
以下程序的运行结果是______。#include union con{ struct {int x,y,z;}m;int i; }num;main(){ num.m.x=4;num.m.y=5;num.m.z=6;num.i=0;printf("%d\n",num.m.x);}