听力原文:(A) All of them are sitting around the table.
(B) They are making a chart together.
(C) The papers are scattered on the desk.
(D) They are watching a movie.
A.
B.
C.
D.
第1题
A.200.00
B.270.00
C.280.00
D.285.00
第2题
有以下程序 struct stu { char num[10];float score[3]; }; main() { struct stu s[3]={{"20021",90,95,85},{"20022",95,80,75},{"20023",100,95,90}},*p=s; int i;float sum=0; p++; for(i=0;i<3;i++)sum=sum+p->score[i]; printf("%6.2f\n",sum); }程序运行后的输出结果是______。
A.260
B.270
C.250
D.285
第3题
有以下程序 struct STU { char num[10]; float score[3]; }; main() { struct STU s[3]={{"20021",90,95,85}, {"20022",95,80,75}, {"20023",100,95,90}},*p=s; int i; float sum=0; for(i-0;i<3,i++) sum=sum+p->score[i]; printf("%6.2f\n",sum}; } 程序运行后的输出结果是
A.260
B.270
C.280
D.285
第4题
A.260
B.270
C.280
D.285
第5题
A.260
B.270
C.280
D.285
第6题
A.260
B.270
C.280
D.285
第7题
A.260.00
B.270.00
C.280.00
D.285.00
第8题
A.260
B.270
C.280
D.285
第9题
有以下程序
struct STU
{ char num[10]; float score[3]; };
main()
{struct STU s[3]={{"20021",90,95,85},
{"20022",95,80,75},
{ "20023",100,95,90},
},*p=s;
int i; float sum=0;
for(i=0;i<3;i++)
sum=sum+p->score[i];
printf("%6.2f\n",sum);
}
程序运行后的输出结果是
A.260.00
B.270.00
C.280.00
D.285.00
第10题
以下程序段,在空白处填写()能使程序正确运行并输出结果。 #include <stdio.h> struct student {long num; char name[10]; char sex; float score; }; main() {struct student stu={10101,"lili",’m’,89.5},*pt; printf("%.2f",pt->score); }
A、*pt=stu;
B、pt=stu;
C、pt=&stu;
D、*pt=&stu;
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!