【单选题】【消耗次数: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
【单选题】 以下程序运行后输出结果是()。#includestdio.hintfun(inta,intb){return(a-b);}main(){intx=5,y=3,k;k=fun(x,y);printf("%d-%d=%d\n",x,y,k);}
①  0
②  x-y=2
③  5-3=2
④  2
【单选题】 执行以下程序后,输出的结果是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( ){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){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 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
随机题目
【单选题】 I had to complete the assignment by Friday [] otherwise, I would have failed the course.
①  comma
②  semicolon
【单选题】 The grass was growing wildly [] but the crop, unfortunately, was dying.
①  comma
②  semicolon
【单选题】 Oil []which is lighter than water, rises to the surface.
①  comma
②  dash
③  brackets
④  semicolon
【单选题】 The house was clean, the table set, and the porch light on [] everything was ready.
①  comma
②  semicolon
【单选题】 Did you know that James Lee [] the novelist and essayist, was also an art critic?
①  comma
②  dash
③  brackets
④  semicolon
【判断题】 No full stop should be used at the end of a title
①  正确
②  错误
【判断题】 If a sentence ends with an ellipsis, a period should not be used.
①  正确
②  错误
【判断题】 Proper names cannot be divided.
①  正确
②  错误
【判断题】 Every word in the title should be capitalized.
①  正确
②  错误
【判断题】 In dates, a comma is used to separate the day and the year if the order is day—month—year.
①  正确
②  错误