【单选题】【消耗次数: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]。
【单选题】 设有如下定义:int x=0,y=3,z; 则语句printf(%d\n,z=(x%y,x/y));的输出结果是
①  1
②  0
③  4
④  3
随机题目
【单选题】 Our universtiy can [] 4000 students.
①  accommodate
②  contain
【单选题】 He was the Emperor of the Berlin Olympics in 1936. here emperor takes the [] meaning.
①  denotative
②  connotative
【单选题】 The pejorative word is [].
①  updated
②  new
③  newfangled
【单选题】 he []his pen on the desk and began reading.
①  lay
②  laid
【单选题】 He spoke English with a [] French accent.
①  thick
②  powerful
③  widespread
④  pronounced
【单选题】 The neutral word is [].
①  prudent
②  shy
③  cowardly
【判断题】 口译笔记是对信息的选择性记录,不是一字不差的记录。
①  正确
②  错误
【判断题】 难以记住或者容易遗忘的信息,比如数字,应该用笔记记下来。
①  正确
②  错误
【判断题】 口译中记笔记了,就不需要其他记忆了,翻译时对着笔记就可以了。
①  正确
②  错误
【单选题】 “bond funds” 的正确译文是?
①  A.组合基金
②  B.债券发行
③  C. 债券基金