卡通小熊维尼PPT模板

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

下面程序的输出是()。#includestdio.hvoidmain(){intx=10,y=3;printf(%d\n,y=x/y);}2/3/2020程序:下面程序的输出是()。#includestdio.hvoidmain(){intx=023;printf(%d\n,--x);}2/3/2020程序:在C语言中,不正确的int类型的常数是()。A)32768B)0C)037D)0xAF2/3/2020程序:执行下面程序中的输出语句后a的值是()。#includestdio.hvoidmain(){inta;printf(%d\n,(a=3*5,a*4,a+5));}2/3/2020程序:请选出以下语句的输出结果()。printf(%d\n,strlen(\t\\065\xff\n));2/3/2020程序:若x为float型变量,则以下语句()。x=213.82631;printf(%-4.2f\n,x);2/3/2020程序:执行以下语句后,输出结果是()。inta=1;printf(%d,%d,a,a++);2/3/2020程序:以下程序的输出结果是()。#includestdio.hvoidmain(){inti=010,j=10;printf(%d,%d\n,++i,j--);}A)11,10B)9,10C)010,9D)10,92/3/2020程序:程序的运行结果是()。#includestdio.hvoidmain(){inta=1,b=2,c=3,d=4,m=2,n=2;(m=ab)&&(n=cd);printf(%d,n);}2/3/2020程序:执行以下语句后a的值为();b的值为()。inta,b,c;a=b=c=1;++a||++b&&++c;2/3/2020程序:程序的运行结果是()。#includestdio.hvoidmain(){intx=10,y=20,z=30;if(xy)z=x;x=y;y=z;printf(%d,%d,%d,x,y,z);}2/3/2020程序的运行结果是()。#includestdio.hvoidmain(){inta=2,b=7,c=5;switch(a0){case1:switch(b0){case1:printf(@);break;case2:printf(!);break;}case0:switch(c==5){case0:printf(*);break;case1:printf(#);break;default:printf(?);break;}default:printf(&);}printf(\n);}2/3/2020程序:#includestdio.hvoidmain(){intx=3,y=0,z=0;if(x=y+z)printf(****);elseprintf(####);}2/3/2020程序:下面程序段的运行结果是()。x=y=0;while(x15)y++,x+=++y;printf(%d,%d,y,x);2/3/2020输入2473CR,下面程序的运行结果是()。#includestdio.hvoidmain(){intc;while((c=getchar())!='\n')switch(c-'2'){case0:case1:putchar(c+4);case2:putchar(c+4);break;case3:putchar(c+3);default:putchar(c+2);break;}printf(\n);}2/3/2020程序的运行结果是()。#includestdio.hvoidmain(){intk=0;charc='A';do{switch(c++){case'A':k++;break;case'B':k--;case'C':k+=2;break;case'D':k=k%2;continue;case'E':k=k*10;break;default:k=k/3;}k++;}while(c'G');printf(k=%d\n,k);}2/3/2020程序的运行结果是()。#includestdio.hvoidmain(){intfun(inth);intt=1;fun(fun(t));}intfun(inth){staticinta[3]={1,2,3};intk;for(k=0;k3;k++)a[k]+=a[k]-h;for(k=0;k3;k++)printf(%d,,a[k]);printf(\n);return(a[h]);}2/3/2020程序:#includestdio.hvoidmain(){inti,j,a=0;for(i=0;i2;i++){for(j=0;j4;j++){if(j%2)break;a++;}a++;}printf(%d\n,a);}2/3/2020程序:#includestdio.hvoidmain(){intx=2;while(x--);printf(%d\n,x);}2/3/2020#includestdio.hvoidnum(){externintx,y;inta=15,b=10;x=a-b;y=a+b;}intx,y;voidmain(){inta=7,b=5;x=a+b;y=a-b;num();printf(%d,%d\n,x,y);}2/3/2020#includestdio.hunsignedfun6(unsignednum){unsignedk=1;do{k*=num%10;num/=10;}while(num);return(k);}voidmain(){unsignedn=26;printf(%d\n,fun6(n));}2/3/2020程序:#includestdio.hlongfun5(intn){longs;if((n==1)||(n==2))s=2;elses=n+fun5(n-1);return(s);}voidmain(){longx;x=fun5(4);printf(%ld\n,x);}2/3/2020#includestdio.hintfunc(inta,intb){intc;c=a+b;returnc;}voidmain(){intx=6,y=7,z=8,r;r=func((x--,y++,x+y),z--);printf(%d\n,r);}2/3/2020#includestdio.hintf(intb[],intn){inti,r;r=1;for(i=0;i=n;i++)r=r*b[i];returnr;}voidmain(){intx,a[]={2,3,4,5,6,7,8,9};x=f(a,3);printf(%d\n,x);}2/3/2020运行结果是()。#includestdio.hvoidmain(){charc[6];inti=0;for(;iN;c[i]=getchar(),i++);for(i=0;iN;i++)putchar(c[i]);}abCRcCRdefCR2/3/2020#includestdio.h#defineLEN4voidmain(){intj,c;staticcharn[2][LEN+1]={8980,9198};for(j=LEN-1;j=0;j--){c=n[0][j]+n[1][j]-2*'0';n[0][j]=c%10+'0';}for(j=0;j=1;j++)puts(n[j]);}2/3/2020程序:#includestdio.hvoidfot(int*pl,int*p2){printf(%d,%d\n,*(pl++),++*p2);}intx=971,y=369;voidmain(){fot(&x,&y);fot(&x,&y);}2/3/2020程序:sizeof(double)是()。A)一种函数调用B)一个双精度型表达式C)一个整型表达式D)一个不合法的表达式2/3/2020程序:#includestdio.hvoidmain(){structdate{intyear,month,dat;}today;printf(%d\n,sizeof(structdate));}

1 / 30
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功