标准答案:<p style="margin-left: 0px; text-align: justify;">假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为( )。</p><p style="margin-left: 0px; text-align: justify;"> A.struct BOOK *x=malloc(book);</p><p style="margin-left: 0px; text-align: justify;"> B.struct BOOK x={"C++ Programming",27.0};</p><p style="margin-left: 0px; text-align: justify;"> C.struct BOOK *x=malloc(sizeof(struct BOOK));</p><p style="margin-left: 0px; text-align: justify;"> D.struct BOOK *x=&book;</p>
答案
<p><span style="color: rgb(33, 37, 41);">标准答案:<strong style="color: rgb(51, 51, 51);"><span style="color: rgb(255, 0, 0);">A.struct BOOK *x=malloc(book);</span></strong></span><br></p>
本文链接:<p style="margin-left: 0px; text-align: justify;">假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为( )。</p><p style="margin-left: 0px; text-align: justify;"> A.struct BOOK *x=malloc(book);</p><p style="margin-left: 0px; text-align: justify;"> B.struct BOOK x={"C++ Programming",27.0};</p><p style="margin-left: 0px; text-align: justify;"> C.struct BOOK *x=malloc(sizeof(struct BOOK));</p><p style="margin-left: 0px; text-align: justify;"> D.struct BOOK *x=&book;</p>