单项选择题在结构类型的定义中,不同数据成员的定义项之间采用的分隔符是()。

A.句点
B.冒号
C.分号
D.逗号


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题假定有“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;

2.单项选择题假定有“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;