【简答题】【消耗次数: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]。
参考答案:
复制
纠错
相关题目
【单选题】 下面程序的输出结果是() 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
【单选题】 执行下面程序:main(){intx=1,y=1,z=1;x=x+++y+++z++;printf("%d,%d,%d",x,++y,z++);}输出的结果为()
①  4,3,2
②  3,3,2
③  3,3,3
④  3,2,2
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  1 7 0
③  3 7 0
④  5 5 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  3 7 0
③  5 5 0
④  1 7 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 设有如下定义:int x=0,y=3,z; 则语句printf(%d\n,z=(x%y,x/y));的输出结果是
①  1
②  0
③  4
④  3
【单选题】 判断x是否最大值的程序,则填空处应填写_______.#include stdio.h void main( ) { int x,y,z; scanf(%d%d%d,x,y, if (_______) printf(最大值是:%d, x); }
①  (x=y)(x=z)
②  (x=y) || (x=z)
③  (x=z)
④  (x=y) (y=z)
【单选题】 执行下面程序后,运行结果是 #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
随机题目
【单选题】 1.Itwasatthegate_____hetoldmethenews.
①  that
②  what
③  which
④  when
【单选题】 —Im looking for a flat.—Would you like _____ with _____ garden?
①  the
②  a
③  a
④  one; the
【单选题】 2.WasitduringtheSecondWorldWar______hedied?
①  that
②  while
③  in which
④  then
【单选题】 Is _____ possible to fly to the moon in a spaceship?
①  now
②  man
③  that
④  it
【单选题】 The TV sets made in China are much better than ______ in Japan.
①  that
②  those
③  them
④  it
【单选题】 Take ____ easy. The roads are icy.
①  it
②  them
③  us
④  you
【单选题】 5.Tomsmotherkepttellinghimthatheshouldworkharder,but______didnthelp.
①  he
②  which
③  she
④  it
【单选题】 10. _____ was ________ who I met in the museum this morning.
①  him
②  he
③  That; he
④  That; him
【单选题】 4.Itwasnot____shetookoffherdarkglasses______Irealizedshewasafamousfilmstar.
①  when; that
②  until; that
③  until; when
④  when; then
【单选题】 —Have you found the bike you lost yesterday?—Yes, Ive found ______ already.
①  it
②  that
③  the one
④  that one