皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
给定,函数fun的功能是:将形参指针所指结构体数组中的三个元素按num成员进行升序排列。 #include typedef struct { int num; char name[10]; }PERSON; void fun(PERSON std[]) { PERSON temp; if(std[0].num>std[1].num) { temp=std[0]; std[0]=std[1]; std[1]=temp; } if(std[0].num>std[2].num) { temp=std[0]; std[0]=std[2]; std[2]=temp; } if(std[1].num>std[2].num) { temp=std[1]; std[1]=std[2]; std[2]=temp; } } main() { PERSON std[ ]={ 5,"Zhanghu",2,"WangLi",6,"LinMin" }; int i; /**********found**********/ fun(______); printf("\nThe result is :\n"); for(i=0; i<3; i++) printf("%d,%s\n",std[i].num,std[i].name); }
A.
*std
B.
&std
C.
i
D.
std
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】简述法律上承认的法律后果?
【简答题】Compared to the people of Wuhan and Hubei, we are not at major risk and in our family we are not worried for our health. Our anxiety comes from the unknown, from the burning question that any internat...
【简答题】7 Listen to a short speech twice and during the second listening, put back the missing words in the blanks. Welcome to Courtyard Hotel. It is our pleasure to welcome you as our guest and to wish you a...
【简答题】于某某诉于海滨等四人祭奠方式纠纷案 (河南省新乡市牧野区人民法院 [2004]牧民一初字第346号民事判决书) 【案情简介】 原于某某被告于海滨系同父异母兄妹关系,原被告生父于凤仪与原告生母胡凤仙于 1933年结婚。1954年胡凤仙去世。于凤仪于1955年与冯云霞结婚,并先后生育上述四被告人。2003年1月31日于凤仪去世,同年9月冯云霞去世。原被告生父于凤仪与原告生母胡凤仙遗物、被告生母冯云霞骨...
【简答题】PASSAGE FOUR Opinion polls are now beginning to show an unwilling general agreement that, whoever is to blame and whatever happens from now on, high unemployment is probably here to stay. This means w...
【简答题】Welcome to Courtyard Hotel. It is our pleasure to welcome you as our guest and to wish you a 1 ________ stay here. It is very important to us that your stay should be as 2 __________ and as enjoyable ...
【简答题】虚拟语气 1. If I _____ you, I ’ d take his offer. A. was B. am C. were D. would be 2. If you ______ to see Mary, what would you tell her? A. are B. are going C. have D. were 3. The experiment is very expe...
【单选题】We should stay here the whole night and ________ dangers.
A.
watch out
B.
look out
C.
watch out for
D.
look for
【简答题】Listen to a short speech twice and during the second listening, put back the missing words in the blanks. Welcome to Courtyard Hotel. It is our pleasure to welcome you as our guest and to wish you a 1...
【简答题】案例分析题 于某某诉于海滨等四人祭奠方式纠纷案 (河南省新乡市牧野区人民法院 [2004]牧民一初字第346号民事判决书) 【案情简介】 原于某某被告于海滨系同父异母兄妹关系,原被告生父于凤仪与原告生母胡凤仙于 1933年结婚。1954年胡凤仙去世。于凤仪于1955年与冯云霞结婚,并先后生育上述四被告人。2003年1月31日于凤仪去世,同年9月冯云霞去世。原被告生父于凤仪与原告生母胡凤仙遗物、被告...
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题