【单选题】【消耗次数: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
随机题目
【单选题】 —She may not be free today.—________, well have to put the meeting off.
①  If may
②  If not
③  If she may not
④  If she may not be free today
【单选题】 —Doyouthinkitsgoingtorainovertheweekend?—_______.
①  I dont believe
②  I dont believe it
③  I believe not so
④  I believe not
【单选题】 —Is your mother going to the supermarket?—No, _______.
①  she doesnt
②  shes cooking
③  she gets by bus
④  to a tailors shop
【判断题】 替代词one通常可用来替代上文中出现过的名词或以可数名词为中心词的整个名词词组,只可指人,不可指物。
①  正确
②  错误
【单选题】 The position of a grandparent is easier than ______ of a parent.
①  ones
②  this
③  that
④  it
【单选题】 Itsnouse_______menottoworry.
①  you tell
②  your telling
③  for you to have told
④  having told
【单选题】 Ifyouwant______youhavetogetthefundsomewhere.
①  that the job is done
②  the job done
③  to have done the job
④  the job that is done
【单选题】 While _______ the sun, the satellite has sent more than four billion bits of information back to earth.
①  having orbited
②  being orbited
③  having been orbited
④  orbiting
【单选题】 Theyareconsidering______beforethepricesgoup.
①  of buying the house
②  with buying the house
③  buying the house
④  to buy the house
【单选题】 Having no money but _______ to know, he simply said he would go without dinner.
①  not to want anyone
②  not wanting anyone
③  wanted no one
④  to want no one