08110012:有以下说明语句,则下面的叙述不正确的是( )。typedef struct stu{int a;float b}stutype;
A. struct是结构体类型的关键字
B. stutype是用户定义的结构体类型名
C. a和b都是结构体成员名
D. struct stu是用户定义的结构体类型名
08110021:当说明一个结构体变量时系统分配给它的内存是( )。
A. 结构体中最后一个成员所需内存量
B. 结构体中第一个成员所需内存量
C. 成员中所占内存量最大者所需的容量
D. 各成员所需内存量的总和
08110032:下列输出字符‘M’的语句是()。struct person{char name[9];int age;};struct person class[10]={"John",17,"paul",19,"Mary",18,"Adam",16};
A. printf("%c\n",class[3].name);
B. printf("%c\n",class[3].name[1]);
C. printf("%c\n",class[2].name[1]);
D. printf("%c\n",class[2].name[0]);
08110042:下列关于结构体变量操作中正确的是()。struct student{char num[10];char name[20],sex;int age;float score[3];float ave;};
A. stu2={"2008002","GaoPing",'M',18,86.3,80.5,89.4,85.4};
B. struct student stu1={"2008001","LiNing",'M',19,84.3,82.5,89.4,85.4};
C. if (stu1==stu2)
D. printf("%10s %20s %c %3d %4.1f %4.1f %4.1f %4.1",stu1);