【单选题】【消耗次数: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
随机题目
【单选题】 His decision was ____, since he could not see the action from where he was standing.
①  arbitrary
②  ordinary
③  casual
④  accurate
【单选题】 Operations which left patients ____ and in need of long periods of recovery time now leave them feeling relaxed and comfortable.
①  exhausted
②  unhealthy
③  upset
④  fearful
【单选题】 Mother told Rose to buy some sugar in the supermarket and_____.
①  she did so
②  so she did
③  so did she
④  she did such
【单选题】 The bank is reported in the local newspaper ____ in broad daylight yesterday.
①  to be robbed
②  robbed
③  to have been robbed
④  having been robbed
【单选题】 The thieves ____ the waste paper all over the room while they were searching for the diamond ring.
①  spread
②  scratched
③  scattered
④  burned
【单选题】 You must pay import ____ on certain goods brought into this country.
①  money
②  fees
③  bills
④  duties
【单选题】 Her mother’ s words of love and help____ the sobbing child.
①  comforted
②  encouraged
③  excited
④  eased
【单选题】 It is a(n) ____ attitude to take towards life.
①  absurd
②  silly
③  stupid
④  authentic
【单选题】 Postal ____ are determined by the class and weight of the parcel mailed.
①  taxes
②  payment
③  fees
④  premium
【单选题】 The bus was____ the driver.
①  in charge of
②  in the charge of
③  take charge of
④  free of charge