单项选择题
以下程序的输出结果是 ( )。 int f() { static int i=0; int s=1; s+=i; i++; return s; } main() { int i,a=0; for(i=0;i<5;i++) a+=f(); printf("%d\n",a); }
A.20
B.24
C.25
D.15
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序的输出结果是 ( )。char cchar(char ch) { if(ch>='A'&&ch<='Z') ch=ch-'A'+'a'; return ch; } main() { char s[]= ABC+abc=defDEF ,*p=s; while(*p) { *p=cchar(*p); p++; } printf( %s n ,s); }
A.abc+ABC=DEFdef
B.abc+abc=defdef
C.abcaABCDEFdef
D.abcabcdefdef
点击查看答案
单项选择题
以下程序的输出结果是()。 #include main() {inti=0,a=0; while(i<20) {for(;;) {if((i)==0)break; elsei--; } i+=11;a+=i; } printh( %d n ,a); }
A.21
B.32
C.33
D.11
点击查看答案&解析
相关试题
mystrlen函数的功能是计算str所指字符串的...
以下程序中,select 函数的功能是:在N行M...
以下程序用来统计文件中字符个数。请填空。...
以下程序的输出结果是【13】 。 main(...
设有如下宏定义 #define MYSWAP(z,x,...