【单选题】【消耗次数:1】
以下程序的输出结果是(  )。intx=10,y=10;printf(“%d%d\n”,x--,--y)
1010
99
910
109
参考答案:
复制
纠错
相关题目
【单选题】 以下程序运行的结果是)main){intx=12,y;y=x>12?x+10:x-12;printf“y=%d\n”,y);}
①  y=0
②  y=22
③  y=12
④  y=10
【单选题】 若运行时给变量x输入12,则以下程序的运行结果是:main){intx,y;scanf%d,y=x>12?x+10:x12;printf%d\n,y)}
①  0
②  22
③  120)10
【单选题】 执行以下程序后,输出的结果是main){inty=10;do{y--;}while--y);printf%d\n,y--);}
①  -1
②  1
③  8
④  0
【单选题】 以下程序段的运行结果是( )。 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){inta=100,x=10,y=20,okl=5,ok2=0;ifx<y)ify!=10)if!okl)a=1;elseifok2)a=10;a=-1:printf%d\n,a)}
①  1
②  0
③  一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
【单选题】 下面程序的输出结果是() 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
【单选题】 执行下面程序后,运行结果是 #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
【简答题】 分析下面程序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]。
随机题目
【单选题】 ____ we could not live at all.
①  If it was not for the sun
②  If it shouldn’t be for the sun
③  Were it not for the sun
④  Had it not been for the sun
【单选题】 Certainly there is no____ evidence that living together increases the chance of sickness.
①  secret
②  scientific
③  serious
④  sensitive
【单选题】 I should like to rent a house, modern, comfortable and ____ in a quiet neighborhood.
①  all in all
②  after all
③  above all
④  over all
【单选题】 The population of Chinais larger than ____ofCanada.?
①  that ?
②  those ?
③  this ?
④  it ?
【单选题】 He told me that he ____ by his uncle in the countryside.
①  will be brought up
②  has been brought up
③  had brought up
④  was brought up
【单选题】 It won’t be long ____ we know each other well.
①  after
②  until
③  when
④  before
【单选题】 A lot of students ____ the campus since July 1.
①  have left
②  leave
③  left
④  is leaving
【单选题】 —I’m taking my driving test tomorrow. —____.
①  Cheers!
②  Congratulations!
③  Come on!
④  Good luck!
【单选题】 He regretted ____ the decision so hastily.?
①  make ?
②  making ?
③  to make ?
④  have made?
【单选题】 My problems are very ____ to yours.
①  alike
②  like
③  same
④  similar