【单选题】【消耗次数:1】
执行以下语句后a的值为( )。 Int a,b,c; a=b=c=1; ++a||++b++c
01
0
2
1
参考答案:
复制
纠错
相关题目
【单选题】 若已定义inta=3,b=2,c=1;则语句++a||++b++c;运行后b的值为()。
①  0
②  3
③  1
④  2
【单选题】 若已定义inta=3,b=2,c=1;则语句++a||++b&&++c;运行后b的值为()。
①  0
②  3
③  1
④  2
【单选题】 inta=1,b=2,c=3; if(a>b)a=b; if(a>c)a=c; 则a的值为().
①  1
②  2
③  3
④  不一定
【单选题】 设有定义:int m,n,a,b,c,d;和语句m=n=a=b=c=d=0;执行:(m=a==b)(n=c==d);后,m,n 的值分别是()。
①  0,0
②  0,1
③  1,0
④  1,1
【单选题】 若已定义:int a=5,b=9,c=6;则语句b++;++c;a=b-c;运行后a的值为()。
①  5
②  3
③  2
④  4
【单选题】 设:inta=1,b=2,c=3,d=4,m=2,n=2;执行(m=a>b)&&(n=c>d)后n的值为()。
①  1
②  2
③  3
④  4
【单选题】 若有定义:int a=3,b=2,c=1;并有表达式:①a%b,②a>b>c,③b&&c+1,④c+=1,则表达式值相等的是()。
①  ①和②
②  ②和③
③  ①和③
④  ③和④
【单选题】 假定a和b为int型变量,则执行以下语句后b的值为a=1;b=10;do{b-=a;a++;}whileb--<0);
①  9
②  -2
③  -1
④  8
【单选题】 执行以下语句后b的值为( )。 Int a=5,b=6,w=1,x=2,y=3,z=4; (a=wx)(b=y
①  6
②  0
③  1
④  4
【单选题】 设有定义:char a;int b;float c,double d;执行语句:c=a+b+c+d;后,变量c 的数据类()。
①  int
②  char
③  float
④  double
随机题目
【单选题】 Whenwespeaktopeople,weshouldbe __________ .
①  aspoliteaspossible
②  aspoliteaspossibly
③  aspolitelyaspossible
④  aspolitelyaspossibly
【单选题】 Whenwearrived,wefoundthemeetingroomcrowdedwith _________ students.
①  quiteafew
②  onlyafew
③  few
④  afewquite
【单选题】 Itwasveryhotyesterday,butitis ________ today.
①  evenhotter
②  morehotter
③  muchmorehot
④  muchhot
【单选题】 I will take my daughter with me when I __________ Shanghai.
①  go to
②  will go to
③  have been to
④  have gone to
【单选题】 What _________ if I drink this ?
①  happens
②  is happening
③  will happen
④  is happened
【单选题】 Throughthewindowwecanseenothingbut _________ buildings.
①  tallverymany
②  verymanytall
③  verytallmany
④  manyverytall
【单选题】 Theearthisabout ________ asthemoon.
①  as fiftytimebig
②  fiftytimesasbig
③  asbigfiftytimes
④  fiftyastimesbig
【单选题】 I ________ here since I moved here.
①  will work
②  worked
③  work
④  have been working
【单选题】 That day he ___________ his clothes before he came to see me.
①  has washed
②  washed
③  had been washing
④  was washed
【判断题】 枸溶性磷肥是指能溶于水的磷肥
①  正确
②  错误