【单选题】【消耗次数:1】
以下程序运行的结果是)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
【单选题】 若运行时给变量x输入12,则以下程序的运行结果是( )。 Main() {int scanf(%d, y=x12?x+10:x-12; printf(%d\n }
①  0
②  22
③  12
④  10
【单选题】 以下程序段的运行结果是( )。 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
【单选题】 执行下面程序后,运行结果是 #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
【单选题】 以下程序的输出结果是(  )。intx=10,y=10;printf(“%d%d\n”,x--,--y)
①  1010
②  99
③  910
④  109
【单选题】 以下程序的运行结果是。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,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
【简答题】 设 A={1, 2, 4, 6}, 分别求关系 R={|x, y∈Aùx+y12}、{|x, y∈Aù|x-y|=1}、{|x, y∈Aùx/y∈A}和{|x, y∈Aùy 为素数}。
随机题目
【单选题】 3. We cannot get an answeryet, for_______to that prob1em is stil1 underdiscussion.
①  action
②  strategy
③  solution
④  impact
【单选题】 4.Scientists didn’t know much about lung cancer ______.
①  before long
②  until recently
③  long before
④  in the past few years
【单选题】 1.Gates open at 10.30am and _______ is free.
①  admission
②  admit
③  admitting
④  admitted
【单选题】 4. The body can’t storevitamin C. So it is_________ to have a fresh supply every day.
①  essential
②  visible
③  ultimate
④  profound
【单选题】 8.Do you have any idea what he meant? I really can’t ______ what he said at this morning’s meeting.
①  figure on
②  figure out
③  find out
④  find
【单选题】 7. The fall in price is directly ______ to the increase in output.
①  concerned
②  connected
③  related
④  united
【单选题】 4. What made him revert______ his habit of smoking?
①  back
②  to
③  away from
④  on
【单选题】 10.We should see ourselves as part of nature rather than in ______ with it.
①  argument
②  connection
③  conflict
④  crash
【单选题】 14.Anyone can borrow magazines from the club ______ he returns them in a week.
①  as long as
②  so that
③  unless
④  as far as
【单选题】 9. They have ______ each other for a long time.
①  corresponded on
②  corresponded with
③  communicated with
④  kept writing