有以下的定义语句:structstudent{intnum;charname[9];};则不能正确定义结构数组并赋初始值的是( )。

lk2025-04-20  1

题目:有以下的定义语句:structstudent{intnum;charname[9];};则不能正确定义结构数组并赋初始值的是( )。

A. structstudentstu[2]={1,"zhangsan",2,"lisi"};

B. structstu[2]={{1,"zhangsan"},{2,"lisi"}};

C. structstudentstu[2]={{1,"zhangsan"},{2,"lisi"}};

D. structstudentstu[]={{1,"zhangsan"},{2,"lisi"}};

答案:评论后可见此内容

本站资源均来自互联网,侵权请联系站长删除

最新回复(0)
公众号图片
🔥推荐

推荐使用我们的公众号搜索题目,题目更全,检索更方便。支持语音、图片、文字等多种搜索方式。