【单选题】【消耗次数:1】
假定一条定义语句为“int a[10],x,*pa=a;”,若要把数组a中下标为3的元素赋值给x,则不正确的语句为( )。
x=pa[3];
x=*(a+3);
x=a[3];
x=*pa+3;
参考答案:
复制
纠错
相关题目
【单选题】 假定一条定义语句为“int a[10],x,*pa=a;”,若要把数组a中下标为3的元素赋值给x,则不正确的语句为( )。
①  x=pa[3];
②  x=*(a+3);
③  x=a[3];
④  x=*pa+3;
【单选题】 假定一条定义语句为“inta[l0], x, *pa=a;”,若要把数组a中下标为3的元素赋值给x,则不正确的语句为?
①  x=pa[3];
②  x=*(a+3);
③  x=a[3];
④  x=*pa+3;
【单选题】 若有定义int*x[3],b[10];则正确的赋值语句是()
①  x=b[0];
②  x=b;
③  x[0]=b[0];
④  x[0]=b[0];
【单选题】 若有说明语句:int x[3][4];则以下关于x、*x、x[0]、&x[0][0]的正确描述是()。
①  x、*[x]、x[0]和x[0][0]均表示元素x[0][0]的地址
②  只有x、x[0]和x[0][0]表示的是元素x[0][0]的地址
③  只有x[0]和x[0][0]表示的是元素x[0][0]的地址
④  只有x[0][0]表示的是元素x[0][0]的地址
【单选题】 若有定义:intx,a;赋值语句a=(x%3==0)?0:1;与()语句不等价。
①  if(x%3!=0)a=1;elsea=0;
②  if(x%3)a=0;elsea=1;
③  if(x%3==0)a=0;elsea=1;
④  if(!(x%3==0))a=1;elsea=0;
【单选题】 当0<x<10时,将x赋值给y,应使用哪一条语句?
①  If 0<x<10 then y=x
②  If 0<x or x<10 then y=x
③  If 0<x and x<10 then y=x
④  If 0<x Xor x<10 then y=x
【单选题】 函数f(x)=x3-3x2-9x+5的极大值为( )
①  -1
②  10
③  3
④  22
【单选题】 曲线f(x)=x^3-3x上的驻点是( )
①  x=0,x=1
②  x=0,x=-1
③  x=-1,x=1
④  x=-1,x=2
【单选题】 假定下列x和y均为int型变量,则不正确的赋值为()
①  x+=y++
②  x++=y++
③  x=++y
④  ++x=++y
【单选题】 假定下列x和y均为int型变量,则不正确的赋值为()。
①  x+=y++
②  x++=y++
③  x=++y
④  ++x=++y
随机题目
【单选题】 His manner was so pleasant that Bolla felt at ____ with him at once.
①  peace
②  large
③  ease
④  best
【单选题】 Research findings show we spend about two hours dreaming every night, no matter what we _________ during the day.
①  must have done
②  would have done
③  should have done
④  may have done
【单选题】 Joseph was very lucky ____ with his life; he almost did not get out of the room.
①  to escape
②  to have escaped
③  to escaping
④  to be escaping
【单选题】 The rescue team must have searched for the missing visitors two days ago, _____?
①  mustn’ t they
②  haven’ t they
③  didn’ t they
④  hadn’ t they
【单选题】 I’ m____ that he didn’ t come.
①  astonished
②  astonishing
③  astonish
④  to astonish
【单选题】 ____ is announced in the papers, our country has launched a large scale movement against smuggling and fraudulent activities in foreign currency exchange deals.
①  What
②  As
③  Which
④  That
【单选题】 The ____ crown jewels are kept in the Tower of London.
①  valued
②  valueless
③  invaluable
④  usable
【单选题】 Though ____ rich, she was better off than at any other period in her life.
①  by means of
②  within her means
③  by all means
④  by no means
【单选题】 You ____ that letter to James. However, you didn’t.
①  ought to write
②  ought to have written
③  should write
④  should be writing
【单选题】 She found herself____ forward more eagerly to the holiday at home.
①  looking
②  bringing
③  desiring
④  expecting