已定义结构体如下,则能正确定义包含30名学生的结构体数组的是()
A: structstudents[30];
B: structstu[30];
C: structs[30]stu;
D: structstustudent[30];
A: structstudents[30];
B: structstu[30];
C: structs[30]stu;
D: structstustudent[30];
举一反三
- 设有以下说明语句,则下面的叙述不正确的是().structstu{inta;floatb;}stutype;? struct是结构体类型的关键字|stutype是用户定义的结构体类型名|struct stu是用户定义的结构体类型|a和b都是结构体成员名
- 有如下结构体说明,以下叙述中错误的是( )。struct stu {int a; float b;} stutype;? struct是结构体类型的关键字|a和b都是结构体成员名|struct stu是用户定义的结构体类型|stutype是用户定义的结构体类型名
- 若使P指向包含30个整型元素的动态数组空间,则使用的定义语句为()。 A: int*p=newint[30] B: int*p=newint(30) C: int*p=new[30] D: *p=newint[30]
- 早高峰定义() A: 6:30到10:30 B: 6:30到9:30 C: 6:30到10:00 D: 7:30到10
- 一下选项中,定义结构体变量错误的是( ) A: struct student {int num; char name[30];<br> }wangming; B: struct {int num; char name[30];<br> }wangming; C: struct student {int num; char name[30];<br> }; struct student wangming; D: struct student {int num; char name[30];<br> }; student wangming;