【单选题】【消耗次数: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); }
0
1
2
3
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #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=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 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 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=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【单选题】 下述程序的运行结果( )。 #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
【单选题】 以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
随机题目
【多选题】 一个以治疗为目标的、由吸毒者组成的戒毒小组适合采用的小组形式是( )
①  开放性小组
②  封闭性小组
③  同质性小组
④  异质性小组
⑤  小小组
【多选题】 同辈领导的好处在于( )
①  加强解决小组问题的能力
②  加强对小组动力的观察
③  培养领袖人才
④  节约人力成本
⑤  反映小组工作成效
【多选题】 小组决策过程中存在的决策方式有( )
①  领导发号施令
②  达成共识
③  少数服从多数
④  委托专家
⑤  小组联合同盟
【单选题】 The audience were ( ) by the opening night of that play.
①  far away
②  blown away
③  right away
④  go away
【单选题】 When my own son was five years old, I became ( )for another baby.
①  eager
②  desire
③  yearn
④  wish
【单选题】 The ( ) hope to cooperate on this initial research.
①  historic
②  history
③  historical
④  historians
【单选题】 For college students, to take part in student union and other clubs and societies will exert a ( ) influence on their personality and life.
①  profound
②  found
③  profoundly
④  profoundity
【单选题】 The rent is reasonable, and ( ), the subway station is near by .
①  therefore
②  since
③  for
④  moreover
【单选题】 The National Museum in Beijing preserves an impressive collection of archaeological artifacts, ( ) and paintings.
①  state
②  statues
③  stay
④  station
【单选题】 The visitors of the museum appreciate the valuable ( ) of furniture.
①  suitable
②  suiting
③  suited
④  suit