【单选题】【消耗次数:1】
有如下程序: #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 a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #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
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是(  )。
①  0
②  1
③  2
④  3
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是。
①  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
【单选题】 有如下程序:main(){  intx=1,a=0,b=0;  switch(x){  case0:b++;case1:a++;case2:a++;b++;}  printf(“a=%d,b=%d\n”,a,b);}该程序的输出结果是()
①  a=2 b=1
②  a=1 b=1
③  a=1 b=0
④  a=2 b=2
【单选题】 下列程序执行后的输出结果是 #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
【单选题】 以下程序输出结果是( )。 Main() {int x=2,y=-1,z=2; if(xy) if(y0) z=0; else z+=1; printf(%d\n }
①  3
②  2
③  1
④  0
【单选题】 请阅读以下程序: main() {int a=5,b=0,c=0; if(a=b+c) printf(***\n else printf($$$\n
①  以上程序:有语法错误不能通过编译
②  可以通过编译但不能通过连接
③  输出***
④  输出$$$
【单选题】 下述程序的运行结果( )。 #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); }
①  a=2,b=1
②  a=1,b=2
③  a=0,b=1
④  a=1,b=0
随机题目
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[sell out; in other words; consist of; stand for; rely on; demand for; engage in; at hand; yield to; confront with]10. Id just like to move to a neighborhood where I wouldnt have to see all the problemsIam[填空1]every day.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[expand; abuse; knowledge; narrative; plantation; property; oppressive; extremely; rebel; abolitionist]4. Tell someone (particularly children) to do the opposite of what you really want, and they will[填空1]and actually end up doing what you want.
【简答题】 Direction: Fill in the blanks with the phrases given below. Change the form if necessary.[collide with; take hold of; for a moment; head for; ever since; be full of; share with; make fun of]6. We saw him[填空1]us, so we stepped aside.
【简答题】 <img src="https://huaweicloudobs.ahjxjy.cn/E5F6AEB6B05D2A517816B38FEA9CEE81.png" title="2.png" alt="2.png"/>
【简答题】 <img src="https://huaweicloudobs.ahjxjy.cn/AE6FDED453ABE6EF485D55EACD6A5CED.png" title="5.png" alt="5.png"/>=[填空1]
【简答题】 Translate the following sentence into English.在他开始欧洲之行之前,我们希望他旅途愉快。
【简答题】 Translate the following sentence into ChinesePrejudice against women violates the fundamental principle that all people are created equal.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[privilege; component; stagnant; entangle; superficial; arresting; expound; penetrating; indulge; click]3. These mew ideas are[填空1]into the minds of the younger generation.
【简答题】 Directions: Fill in the blanks with the words given below. Change the form if necessary.(pros and cons; allocation; update; complexity; infancy; initially; minimal;strategically; grab; digest)3. So how do you manage this[填空1].
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[ought to; look forward to; in wonder; give way to; look down; on the way to; reach out; put one’s arm around; trip over; cut into]3. The woman was so excited at seeing her lost son and[填空1]him.