【单选题】【消耗次数:1】
按照下题选出正确的输出结果如果有如下定义:int a[3][4]={{1, 2, 3, 4}, {5, 6, 7, 8},{9, 10, 11, 12}};,那么a[2][1]元素的结果是()?
12
11
10
9
参考答案:
复制
纠错
相关题目
【单选题】 若有以下说明,int?a[12]={1,2,3,4,5,6,7,8,9,10,11,12};?则数值为4的表达式是()
①  a[4]
②  a(3)
③  a[3+1]
④  a[4]-a[0]
【单选题】 若有以下数组说明inta[12]={1,4,7,10,2,5,8,11,3,6,9,12};则i=10;a[a[i]]元素数值是( )。
①  10
②  9
③  6
④  5
【单选题】 有以下程序,执行后输出结果是() main( ) { int m[][3]={1,4,7,2,5,8,3,6,9}; int i,j,k=2; for(i=0;i { printf(%d ,m[k][i]); } }
①  4 5 6
②  2 5 8
③  3 6 9
④  7 8 9
【单选题】 以下程序段运行后sum的值为()。intk=0,sum=0;inta[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};for(;kk++)sum+=a[k][k+1];
①  9
②  18
③  19
④  21
【单选题】 已知int a[10]={0,1,2,3,4,5,6,7,8,9},*p=a;不能表示数组a中元素的式子是()
①  *a
②  *p
③  a
④  a[p-a]
【简答题】 int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;int i;p=a;printf(%d\n,*p++);printf(%d\n,*++p);程序输出结果为[填空1]和[填空2]。
【单选题】 有以下程序段int?a[10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],b;b=p[5];b中的值是()
①  5
②  6
③  8
④  9
【单选题】 若有以下定义,则数组元素a[3]的值是()。int a[5]={1,2,3}
①  0
②  1
③  2
④  3
【简答题】 #includestdio.hint main(){int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;p=a;printf(%d\n,*p);p++;printf(%d\n,*p);}程序输出结果为[填空1]和[填空2]。
【单选题】 若有定义:inta[10]={0,1,2,3,4,5,6,7,8,9},*p=a;,则()表达式是错误的。
①  a[2]
②  p++
③  p[2]
④  a++
随机题目
【单选题】 Features such as height, weight, and skin color ____ from individual to individual and fromface to face.
①  change
②  vary
③  alter
④  convert
【单选题】 Happiness doesn’t necessarily ______ money.
①  go for
②  go through
③  go back
④  go with
【单选题】 Modern machinery _______ been installed in this newly-built factory.
①  has
②  have
③  is
④  are
【单选题】 After failing the exams three times, Jack realized that he’d never ____in English.
①  see to it
②  attain it
③  catch it
④  make it
【单选题】 Before the final examination, some students have shown _______ of tension. They even have trouble in sleeping.
①  anxiety
②  marks
③  remarks
④  signs
【单选题】 Wow! This is a marvelous room! I’ve never known you’re so artistic._________
①  Great, I am very art-conscious.
②  Don’t mention it.
③  Thanks for your compliments.
④  It’s fine.
【单选题】 Sorry, I can’t find the books you asked for.____________
①  Don’t mention it.
②  It’s your fault.
③  Thanks anyway.
④  I won’t forgive you.
【单选题】 The atmosphere _______ certain gases mixed together in definite proportions.
①  composes of
②  is made up
③  consists of
④  makes up of
【单选题】 Do you mind my smoking here?___________
①  No, thanks.
②  Yes, I do.
③  Yes, I’d rather not.
④  Good idea.
【单选题】 Every time when I go back to my hometown, I usually spend two days ____ of my relatives.
①  going the rounds of
②  rounding up
③  making the rounds of
④  rounding on