题目内容

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);

查看答案
更多问题

08110052:以下定义结构体类型的变量st1,其中不正确的是()。

A. typedef struct student{int num;int age;}STD;STD st1;
B. struct student{int num ,age;}st1;
C. struct{int num;int age;}st1;
D. struct student{int num;int age;};student st1;

08210012:当说明一个共用体变量则系统分配给它的内存是( )。

A. 各成员所需内存量的总和
B. 结构中第一个成员所需内存量
C. 成员中占用内存量最大者所需容量
D. 结构中最后一个成员所需内存量

08210022:共用体类型变量在任何时刻()。

A. 所有成员一直驻留在内存中
B. 只有一个成员驻留现在内存中
C. 部分成员驻留在内存中
D. 没有成员驻留在内存中

08310012:设有枚举类型定义:enumcolor={red=3,yellow,blue=10,white,black};其中枚举量black的值是()。

A. 7
B. 15
C. 14
D. 12

答案查题题库