试题与答案

有以下程序  struct STU  {  char name[10];v   in

题型:单项选择题

题目:

有以下程序  struct STU  {  char name[10];v   int num;    int Score; };  main( )  { struct STU s[5]={ {“YangSan”,20041,703},{“LiSiGuo”,20042,580},              {“wangYin”,20043,680},{“SunDan”,20044,550},              {“Penghua”,20045,537}},*p[5],*t;   int i,j;   for(i=0;i<5;i++) p[i]=&s[i];   for(i=0;i<4;i++)    for(j=i+1;j<5;j++)    if(p[i]->Score>p[j]->Score)    { t=p[i];p[i]=p[j];p[j]=t;}   printf(“%d %d\n”,s[1].Score,p[1]->Score); }  执行后输出结果是( )

A.550 550

B.680 680

C.580 550

D.580 680

答案:

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

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

1. I'm afraid 2. gave me some advice / suggestions 3. anything is possible / nothing is impossible 4. Smoking is banned / not allowed 5. hope to see / visit you again 答案不唯一

试题推荐
微信公众账号搜索答案