单项选择题假定一个结构类型的定义为 “struct A{int a,b; double c;};”,则该类型的长度为()。

A.8
B.10
C.12
D.16


您可能感兴趣的试卷

你可能感兴趣的试题

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;

3.单项选择题假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为()。

A.struct BOOK *x=malloc(book);
B.struct BOOK x={"C++ Programming",27.0};
C.struct BOOK *x=malloc(sizeof(struct BOOK));
D.struct BOOK *x=&book;