相关考题
-
多项选择题
数据结构里,struct student { char name[20]; char sex[10]; int age; int score; }; 定义结构体后,定义变量、数组赋值正确的是()。
A.struct student s={"张三","男",18,100};
B.struct student stu[3]={{"张三","男",18,100},{"李四","男",19,90},{"王五","男",23,97}};
C.struct student s={"李四";"女";18;100};
D.struct student stu[3]={{"张三",18,"男",100},{"李四",19,"男",90},{"王五",23,"男",97}}; -
单项选择题
数据结构里,定义名称为plan结构体,plan结构体有个成员变量叫time类型是字符数组,定义了prior是plan类型的指针变量,如何引用prior的time成员()。
A.prior->time
B.prior.time
C.prior.time[0]
D.prior->time[0] -
单项选择题
数据结构里,定义名称为plan结构体,定义了名为arr的该类型的数组共5个元素,plan结构体有个成员变量叫time类型是字符数组,则应用该数组第二个元素的time的方式是()。
A.arr[1].plan
B.arr[2].plan
C.arr[1].time
D.arr[2].time
