注意:此页面搜索的是所有试题
题目内容
(国家开放大学C语言程序设计)
假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为( )。
单选题 (2 分) 2分
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;
单选题 (2 分) 2分
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;
参考答案