• 2022-05-30
    设位段的空间分配由右到左,下面程序执行后的输出结果是( )。#include<;stdio.h>;struct packed { unsigned a:2; unsigned b:2; unsigned c:3; int i;} data ;int main(){ data.a=2; data.b=3; printf("%d",data.a+data.b); return 0;}
    A: 语法错
    B: 2
    C: 5
    D: 3