【单选题】【消耗次数:1】
以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
110
011
211
001
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
①  110
②  211
③  011
④  001
【单选题】 执行下面程序后,运行结果是 #includevoid main( ) { int x=41,y=1; if (x%3==0 x%7==0) { y+=x;printf(y=%d\n} else {y=x;printf(y=%d} }
①  y=41
②  y=43
③  y=42
④  y=1
【单选题】 以下程序段的运行结果是( )。 for(y=1;y) y=((x=3*y,x+1),x-1); printf(x=%d,y=%d,x,y);
①  x=27,y=27
②  x=12,y=13
③  x=15,y=14
④  x=y=27
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);
①  1 3
②  1 5
③  5 3
④  5 5
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);}
①  1 3
②  1 5
③  5 3
④  5 5
【单选题】 以下程序运行的结果是)main){intx=12,y;y=x>12?x+10:x-12;printf“y=%d\n”,y);}
①  y=0
②  y=22
③  y=12
④  y=10
【简答题】 分析下面程序main(){ int x=2,y,z;x*=3+2;printf(%d\nx*=y=z=4;printf(%d\nx=y=1;z=x++-1;printf(%d,%d\n,x,z);z+=-x++ +(++y);printf(%d,%d,x,z); }程序的输出结果是[填空1]。
【单选题】 下面程序的输出结果是() main( ) {int x=40,y=4,z=4; x=y==z; printf(%d,x); x=x==(y-z); printf(%d,x); }
①  40
②  41
③  11
④  10
【单选题】 以下程序输出结果是( )。 Main() {int x=2,y=-1,z=2; if(xy) if(y0) z=0; else z+=1; printf(%d\n }
①  3
②  2
③  1
④  0
【单选题】 若运行时给变量x输入12,则以下程序的运行结果是:main){intx,y;scanf%d,y=x>12?x+10:x12;printf%d\n,y)}
①  0
②  22
③  120)10
随机题目
【单选题】 A: Its getting late. Im afraid I must be going now. B: Ok. [填空].
①  See you
②  Take it easy
③  Go slowly
④  Stay long
【单选题】 A: [填空]? B: Do you have a doll?
①  What do you want to sell
②  Shall I help you
③  Do you like a doll
④  What can I do for you
【单选题】 A: Im having a barbecue next Saturday. [填空]. B: Sure. That would be wonderful. What time?
①  I have invited some of my friends to come
②  Will you be free at that time?
③  Im looking forward to it
④  I was wondering if youd like to come
【单选题】 A: Ive got your invitation. B: Oh, good. [填空]
①  Thanks a lot.
②  Ill take it.
③  Can you come?
④  May I help you?
【单选题】 A: Would you mind if I turned the radio off? B: [填空].
①  Yes, please
②  No, go right ahead
③  Yes, thats all right
④  No, thank you
【单选题】 A: Would you like some wine? B: Yes, just [填空].
①  little
②  very little
③  a little
④  little bit
【单选题】 A: Would you like another cup of tea? B: Ive enough. [填空].
①  I would eat anything
②  Thank you by the way
③  Thank you all the same
④  No, anything will do
【单选题】 A: How far is the airport from here? B: [填空].
①  You can take a taxi
②  Ill fly to Paris
③  Its only six hundred dollars
④  Its about thirty miles
【单选题】 A: Excuse me, how much is the dress? B: Its €100. [填空]
①  Which do you prefer?
②  Oh, no. Thats OK!
③  How do you like it?
④  Would you like to try it on?
【单选题】 A: Bring me the bill, please. B: [填空].
①  You are welcome
②  Ill hurry up
③  Please wait for a moment, sir
④  Be quick