以下程序运行后的输出结果是【 】。 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); }
第1题
以下程序运行后的输出结果是【 】。 include <stdio.h> main( ) { int a,b,c; a =25;b =025;e =0x25; prinff("%d %d %d\n",a,h,c); }
请帮忙给出正确答案和分析,谢谢!
第2题
以下程序运行后的输出结果是【 】。 include <stdio.h> main( ) { int x=1,y=0,a=0,b=0; switch ( x ) { case 1:switch(y) { case 0:a ++; break; case 1 :b ++; break; } case 2:a ++ ;b +*; break; } printf("%d %d\n",a,b); }
请帮忙给出正确答案和分析,谢谢!
第3题
以下程序运行后的输出结果是【 】。 include <stdio.h> main( ) { int p[7] ={11,13,14,15,16,17,18}; int i=0,j=0; while(i<7 && p[i]%2==1) j+ =p[i++]; prinff( "% d \n" ,j);
请帮忙给出正确答案和分析,谢谢!
第4题
有以下程序: include <stdio.h> main() { int n=0,m=1,x=2; if(! n)x-=1; if(m) x-=2; if(x) x-=3; printf("%d\n",x); } 执行后的输出结果是【 】。
请帮忙给出正确答案和分析,谢谢!
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!