存放10个学生的数据,包括学号、姓名、成绩。在如下的结构体数组定义中,不正确的是( )。
A. struct student { int sno; char name[20]; float score;} stu[10];
B. struct student stu[10] { int sno; char name[20]; float score; } ;
C. struct { int sno; char name[20]; float score; } stu[10];
D. struct student { int sno; char name[20]; float score;}; struct student stu[10];
查看答案
以下程序段的执行结果为()。enum em {em1=3,em2=1,em3,em0};char *s[]={"AAA","BBB","CCC","DDD"};printf("%s,%s\n",s[em3],s[em0]);
AAA,BBB
BBB,CCC
CCC,DDD
DDD,AAA
若“enum em {em1=3,em2,em3=1};”,则em2的值为4。
A. 对
B. 错
结构体说明“struct example { int data; struct example *next;};”是不正确的。
A. 对
B. 错
拆卸动力蓄电池时,总是最先拆下( )电缆。
A. 正极
B. 负极
C. 搭铁
D. 不确定