【单选题】【消耗次数:1】
若intx,y;doublez;以下不合法的scanf函数调用语句是()。
scanf(%d%lx,%le,x,y,z);
scanf(%2d*%d%lf,x,y,z);
scanf(%x%*d%o,x,y);
scanf(%x%o%6.2f,x,y,z);
参考答案:
复制
纠错
相关题目
【单选题】 有如下程序段,从键盘输入数据的正确形式应是( )。(注:?代表空格) int x,y,z; scanf(x=%d,y=%d,z=%d,x,y,
①  123
②  x=1, y=2, z=3
③  1, 2, 3
④  x=1?y=2?z=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)
【单选题】 若运行时给变量x输入12,则以下程序的运行结果是:main){intx,y;scanf%d,y=x>12?x+10:x12;printf%d\n,y)}
①  0
②  22
③  120)10
【单选题】 已知 int x=30,y=50,z=80;以下语句执行后变量x、y、z的值分别为:。if (xy||xz)z=x; x=y; y=z;
①  x=50, y=80, z=80
②  x=80, y=30, z=50
③  x=30, y=50, z=80
④  x=50, y=30, z=30
【单选题】 已知 int x=30,y=50,z=80;以下语句执行后变量x、y、z的值分别为:。if (xy||xz)z=x; x=y; y=z;
①  x=50, y=80, z=80
②  x=50, y=30, z=30
③  x=30, y=50, z=80
④  x=80, y=30, z=50
【简答题】 分析下面程序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(){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=40,y=4,z=4; x=y==z; printf(%d,x); x=x==(y-z); printf(%d,x); }
①  40
②  41
③  11
④  10
【单选题】 已知if (xy||xz);z=x; x=y; y=z;int x=30,y=50,z=80;语句执行后变量x、y、z的值分别为:。
①  x=50, y=80, z=80
②  x=50, y=30, z=30
③  x=30, y=50, z=80
④  x=80, y=30, z=50
【单选题】 以下程序段的运行结果是( )。 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
随机题目
【判断题】 China is famous for handicrafts ,silk,porcelain.
①  正确
②  错误
【判断题】 Tourists from all over the world love to buy clothes in Hongkong
①  正确
②  错误
【判断题】 Three-colored glazed pottery is a specialty of Suzhou
①  正确
②  错误
【判断题】 cloisonné is a specilaty of Shanghai
①  正确
②  错误
【判断题】 Qipao is one of the most typical traditional costume for Japanese women
①  正确
②  错误
【判断题】 Each country has not its own laws about what can or cannot be brought from abroad.
①  正确
②  错误
【判断题】 Qipao is elegant and gentle
①  正确
②  错误
【判断题】 Qipao displays the sledner legs of men.
①  正确
②  错误
【单选题】 They thought I was a smuggler. What is the meaning of the word smuggler?( )
①  小偷
②  咨询师
③  走私犯
④  警察
【单选题】 ( ) is an important part of international airports.
①  Custom
②  Customer
③  Customs
④  Costume