單項選擇題假定有“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;
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題假定有“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;