如下程序在x86_64位系统下运行,d的输出结果是() #include&...
发布于 2022-03-03 15:13:26
如下程序在x86_64位系统下运行,d的输出结果是()
#include<stdio.h> struct bitfields { unsigned short a:4 unsigned short b:5 unsigned short c:7 } test int main(int argc, char *argv[]) { int d = 0 test.a = 2 test.b = 3 test.c = 0 d = *((unsigned short *)&test) printf("%d\r\n", d) return 0 }
登录后免费查看答案
关注者
0
被浏览
71