A.stopped
B.created
C.called
D.mentioned
第1题
分析下面程序的运行结果()。 #include "stdio.h" main() { int a[4][4]={{1,2,-3,-4},{0,-12,-13,14},{-21,23,0,-24},{-31,32,-33,0}}; int i,j,s=0; for(i=0;i<4;i++) { for(j="0;j<4;j++)" continue; if(a[i][j]="=0)" break; s+="a[i][j];" } printf("%d",s);>
第2题
有以下程序: #include<stdio.h> int fun(int*k) {int b=0; b=*k+b: return(B);} main() {int a[10]={1,2,3,4,5,6,7,8},i; for(i=2;i<4;i++){printf("%d",fun(&a[i]));} printf("\n"); } 程序运行后的输出结果是()。
A.10 12
B.8 10
C.3 4
D.10 28
第3题
以下程序运行后的输出结果是【 】。 include <stdio.h> main() { int a[4] [4]= {{1,2,3,4}, {5678},{11121314},{15161718} }; int i=0,j =0,s =0; while(i ++ <4) if(i ==2 [[ i ==4) continue; j=0; do{ s+ = a[i][j]; j++; } while(j<4); } pdnff(" % d\n" ,s); }
第4题
计算1!+2!+3!+4!+5!编程如下,程序中下划线处应填写__。 #include <stdio.h> void main() { int i; int t=__,s=__; for(i=1;i<6;i++) { t="t*i;" s="s+t;" } printf("1!+2!+3!+4!+5!="%d\n",s);">
第5题
A.-1
B.1
C.0
D.4
第6题
A.16
B.32
C.40
D.80
第7题
第8题
有如下程序段: #include<stdio.h> #define Max(a,b) a>b?a:b main() { int a=5,b=6,c=4,d; d=c+Max(a,b); printf("%d",d); } 其输出结果为______。
A.10
B.5
C.6
D.编译错误
第9题
以下程序的输出结果是【 】。 include <stdio.h> main() { int a=2,b=3,c=4; a* =16+(b++) -(c); Printf("%d",a); }
第10题
有如下程序段: #include <stdio.h> #define Max(a,b) a>b?a:b main() { int a=5,b=6,c=4,d; d=c+Max(a,b) ; printf("%d",d) ; } 其输出结果为______。
A.10
B.5
C.6
D.编译错误
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!