單項選擇題假定一個結構類型的定義為 “struct A{int a,b; double c;};”,則該類型的長度為()。
A.8
B.10
C.12
D.16
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題在結構類型的定義中,不同數(shù)據(jù)成員的定義項之間采用的分隔符是()。
A.句點
B.冒號
C.分號
D.逗號
2.單項選擇題假定有“struct BOOK{char title[40]; float price;} book;”,則正確的語句為()。
A.struct BOOK x= &book;
B.struct BOOK *x=&book;
C.struct BOOK x=calloc(BOOK);
D.struct BOOK *x=BOOK;