單項選擇題

下面程序的運行結(jié)果是( )。
#include
union data { int i; char c; double d; } a[2];
void main() {printf("%d\n", sizeof(a) ) ; }

A.16
B.8
C.4
D.2


您可能感興趣的試卷

你可能感興趣的試題

2.單項選擇題下列()對結(jié)構(gòu)類型變量定義是錯誤的。

A.struct teacher {int num; int age; } teach1;
B.struct {int num; int age; } teach1, teach2;
C.struct {int num; int age; } teacher; struct teacher teach1;
D.struct teacher {int num; int age; } ; struct teacher teach1;