問題詳情
48)有以下程序structSTU{charname[10];intnum;floatTotalScore;};voidf(structSTU*p){structSTUs[2]={{"SunDan",20044,550},{"Penghua",20045,537}},*q=s;++p;++q;*p=*q;}main(){structSTUs[3]={{"YangSan",20041,703},{"LiSiGuo",20042,580}};f(s);printf("%s%d%3.0fn",s[1].name,s[1].num,s[1].TotalScore);}程序运行后的输出结果是
(A)SunDan20044550
(B)Penghua20045537
(C)LiSiGuo20042580
(D)SunDan20041703
(A)SunDan20044550
(B)Penghua20045537
(C)LiSiGuo20042580
(D)SunDan20041703
參考答案
答案:B
難度:非常困難0
統計:A(0),B(0),C(1),D(0),E(0)
內容推薦
- 47)有以下程序#includestructSTU{charname[10];intnum;};voidf(char*name,intnum){structSTUs[2]={{"SunDan
- 41)有以下程序#includemain(){charp[]={'a','b','c'},q[10]={'a',
- 46)有以下程序#includestructSTU{intnum;floatTotalScore;};voidf(structSTUp){structSTUs[2]={{20044,550},{200
- 40) 有以下程序struc STU{ char name[10];int num;};void f1 struct STU C){ struct STU b={“LiSiGuo”,2042};c=b
- 44) 以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是(A)char s[10]=”abcdefg”;(B)char t[]=”abcdefg”,*s=t;(C)char s[10];s=
- 48) 有以下程序#includestruct NODE{int num;struct NODE *next;};main){ struct NODE *p,*q,*r;int sum=0;p= st
- 36)有以下程序main(){intk=5,n=0;while(k>0){switch(k){default:break;case1:n+=k;case2:case3:n+=k;}k--;}pr
- 36) 有以下程序main){ char *p[10]={“abc”,”aabdfg”,”dcdbe”,”abbd”,”cd”};printf “%dn”,strlen p[4]));}执行后输出结果
- 43) 有以下程序void sort int a[],int n){ int i,j,t;for i=0;i for j=i+2;j if a[i] }main ){ int aa[1
- 45)有以下程序inta=2;intf(intn){staticinta=3;intt=0;if(n%2){staticinta=4;t+=a++;}else{staticinta=5;t+=a++;
內容推薦
- 49) 有以下程序#includemain){ FILE *fp; int i,k=0,n=0;fp=fopen “ddat”,”w”);for i=1;i<4;i++) fprintf f
- 50) 有以下程序(提示:程序中fseek fp,-2L*sizeof int),SEEK_EN(D;语句的作用是使位置指针从文件尾向前移2*sizeof int)字节)#includemain){
- --Your mum is very kind--Yeah, My mum is pretty considerate, you know what ,she always arranges
- 49)以下程序的功能是进行位运算main(){unsignedchara,b;a=7^3;b=~4%263;printf("%d%dn",a,b);}程序运行后的输出结果是(A)4
- We are at your service. Don’t to turn to us if you have any further problems.(A) beg (B) hesitat
- 在DOS环境下,代表键盘和显示器的设备文件名为 (A)PRN (B)CON (C)NUL (D)LPT
- 50)有以下程序#includemain(){FILE*fp;inti,k,n;fp=fopen("data.dat","w+");for(i=1;i<6
- The Somali robbed frequent attacks on the sea urged the United Nations to all nations to take im
- 第二节 完形填空(共20小题:每小题5分,满分30分)阅读下面短文,从短文后各题所给的四个选项(A、B、C和D)中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。Children fin
- In April, 2009, President Hu inspected the warships in Qingdao, the 60th anniversary of the foun
- The World Health Organization gave a warning to the public without any When the virus of H1N1 hi
- 行文時,把不同或相反的觀念或事實對列起來,兩相比較,使它的意義更加鮮明,印象更為強烈的修辭法叫「映襯」。下列何者沒有運用「映襯修辭」?(A)一沙一世界,一花一天堂。(B)我是一個生命的信徒。起初是的;
- (A) friendless (B) worthless (C) penniless (D) homeless
- 结构化程序由三种基本结构组成,三种基本结构组成的算法 (A)可以完成任何复杂的任务 (B)只能完成部分复杂的任务 (C)只能完成符合结构化的任务 (D)只能完成一些简单的任务 以
- 计算机网络的主要特点是(A) 运算速度快 (B)运算精度高 (C)资源共享 (D)人机交互
- 下列「」中的字音,何組相同?(A)言者「諄」諄/「尊」老敬賢 (B)再三叮「囑」/眾所「矚」目(C)得不「償」失/「觴」酌流行 (D)「喟」然而歎/無「謂」之爭
- 有以下程序 main() { int i; for(i=0;i<3;i++) switch(i) { case 0:printf("%d",i)
- DOS文件系统的组织结构属于 (A)星形结构 (B)网形结构 (C) 环形结构 (D)树形结构
- (A) when (B) while (C) how (D) why
- 磁盘处于写保护状态时其中的数据 (A)不能读出,不能删改 (B)可以读出,不能删改 (C)不能读出,可以删改 (D)可以读出,可以删改
- --Why does the Lake smell terrible?--Because large quantities of water .(A) have polluted (B) is
- 若x和y代表整型数,以下表达式中不能正确表示数学关系|x-y|-10&& x-y10 (D)(x-y)*(x-y)<100
- It seems that living green is easy and affordable. A small step masks a big difference.(A) exact
- 以下定义语句中正确的是 (A)char a='A'b='B'; (B)float a=b=0; (C)int a=10,*b=&a; (D
- 从Windows环境进入MS-DOS方式后,返回Windows环境的DOS命令为 (A)EXIT (B)QUIT (C)RET (D)MSDO