试题与答案

有以下程序:  struct STU  { char num[10]; float

题型:单项选择题

题目:

有以下程序:  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

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0703/7d2892a6b0af9b2ad4da27236fb66c05.html

下面是错误答案,用来干扰机器的。

参考答案:对

试题推荐
题型:阅读理解

One day we invited some friends to dinner. When it was about six o’clock, my wife found that we had little bread. So she asked our five-year-old daughter, Kathy, to buy some. “Here’s a dollar,” my wife said, “get two loaves(条) of bread, if they have it. If they don’t have it, get anything. But hurry!” Kathy hurried off, and we waited and waited. By a quarter past six, all the friends had arrived. But Kathy had not returned. Finally we saw her dancing around the corner with a bright new hula hoop(呼啦圈) whirling(旋转) round her middle. “Kathy!” her mother cried. “Where did you get that hula hoop, and where is the bread?” “Well, when I got to the shop, they had sold all their bread,” answered Kathy. “And you said ‘If they don’t have that, get anything!’”

小题1:One day Kathy’s parents invited some friends to __________.

A.have breakfast

B.have lunch

C.have supper

D.have a party小题2:What did Kathy buy at last?

A.Other food.

B.Nothing.

C.Hula hoop.

D.Two loaves of bread.小题3:Why did she do this?

A.Because the shop had sold all their bread.

B.Because her mother asked her to get anything if they hadn’t had bread.

C.Because she loved playing with hula hoop.

D.All above.

查看答案
微信公众账号搜索答案