【单选题】【消耗次数: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
随机题目
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Your long-term memory contains everything that you remember.
①  正确
②  错误
【判断题】 阅读课文II. Department stores 判断下列句子表述内容的正误:Customers can enjoy other services besides buying goods in a store.
①  正确
②  错误
【判断题】 阅读课文II.Everybodys Jogging, 判断下列句子表述内容的正误:Jogging cost you nothing but time.
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Many television programs show violence, which usually has a bad effect on young adults.
①  正确
②  错误
【判断题】 阅读课文II. My first days in Beijing, 判断下列句子表述内容的正误:The writer (作者) was from a small town.
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Once in a small village there was a young boy name John, whom sold cooking oil.
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”If you have been in the department store such long that you feel hungry, you will not need to leave the building.
①  正确
②  错误
【判断题】 阅读课文II. Department stores判断下列句子表述内容的正误:Without your receipt you can return any goods at the Customer Service Department.
①  正确
②  错误
【判断题】 阅读课文II.How to Improve Memory, 判断下列句子表述内容的正误:You can watch TV and memorize new words at the same time.
①  正确
②  错误
【多选题】 I shall never forget the days when I first ________________ Beijing.
①  set foot in
②  arrive at
③  arrived at
④  set out