请高手解答,感激不尽!!!关于位域的
写出下列程序在X86上的运行结果 struct mybitfields
{ unsigned short a : 4;
unsigned short b : 5;
unsigned short c : 7;
}test ;
void main(void)
{ int i;
test.a=2;
test.b=3;
test.c=0;
i=*((short *)&test);
printf("%d\n",i);
}
2011-02-27 22:26
2011-02-28 07:20
2011-02-28 09:41
2011-02-28 10:22

2011-02-28 14:37
2011-02-28 16:43
2011-03-04 17:57