假定有“structBOOK{chartitle[40];floatprice;};BOOK*book;”,则正确的语句为()。
A、BOOK*x=newbook;
B、BOOKx={"C++Programming",27.0};
C、BOOK*x=newBOOK;
D、BOOK*x=book;
第1题:
A.BOOK&x=&book
B.BOOK&x=book
C.BOOK&x=newBOOK
D.BOOK&x=BOOK
第2题:
A.BOOK*x=newbook
B.BOOKx={"C++Programming", 27.0}
C.BOOK*x=newBOOK
D.BOOK*x=book
第3题:
假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为()。
Astruct BOOK *x=malloc(book);
Bstruct BOOK x={"C++ Programming",27.0};
Cstruct BOOK *x=malloc(sizeof(struct BOOK));
Dstruct BOOK *x=&book;
第4题:
A.strcpy(book->title,”WangTao”)
B.strcpy(book.title,”WangTao”)
C.strcpy(*book.title,”WangTao”)
D.strcpy((*book)->title,”WangTao”)
第5题:
假定有“struct BOOK{char title[40]; float price;} book;”,则正确的语句为()。
Astruct BOOK x= &book;
Bstruct BOOK *x=&book;
Cstruct BOOK x=calloc(BOOK);
Dstruct BOOK *x=BOOK;