写出下列程序在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); }
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题