【单选题】【消耗次数:1】
下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
1
2
3
4
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 下列程序执行后的输出结果是 #includevoid main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,1,3
②  4,5,6
③  5,0,3
④  3,4,7
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,0,3
②  4,5,6
③  5,1,3
④  3,4,6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); } case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=1,b=1
②  a=2 ,b=1
③  a=2,b=2
④  a=3,b=3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【单选题】 以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【单选题】 有如下程序: #includevoid main( ) { int a=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
随机题目
【单选题】 The whole world is brought home to us_________ television.
①  across
②  over
③  through
④  among
【单选题】 There is no need to hurry. Please drive_________ .
①  safely
②  quickly
③  quietly
④  clearly
【单选题】 Short-term memorylasts less than _________.
①  seconds
②  weeks
③  months
④  years
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Discuss with children in advance which programs they can watch.
①  正确
②  错误
【多选题】 I want to___________ this letter to the U.S.. How much if the postage, please?
①  mail
②  send
③  keep
④  weigh
【多选题】 Im_________ to agree with you.
①  can
②  cant
③  unable
④  not able
【单选题】 Women especially enjoy_________ in department stores at their leisure.
①  wondering
②  weeping
③  wandering
④  watching
【单选题】 Can anything be done to_________ the negative influence of some television programs?
①  accept
②  assume
③  avoid
④  alarm
【判断题】 任意两个基本事件都是互斥的
①  正确
②  错误
【判断题】 设矩阵A,B为同阶可逆矩阵,则<img class=jc-formula data-tex={ (AB) }^{ -1 }={ A }^{ -1 }{ B }^{ -1 } src=https://huaweicloudobs.ahjxjy.cn/4D0D5CA61C6CEACD30AEE46B39C339BC.png style=vertical-align: middle;/>
①  正确
②  错误