【单选题】【消耗次数:1】
若有以下数组说明inta[12]={1,4,7,10,2,5,8,11,3,6,9,12};则i=10;a[a[i]]元素数值是( )。
10
9
6
5
参考答案:
复制
纠错
相关题目
【单选题】 若有以下说明,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]
【单选题】 以下程序段运行后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]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],b;b=p[5];b中的值是()
①  5
②  6
③  8
④  9
【单选题】 已知int a[10]={0,1,2,3,4,5,6,7,8,9},*p=a;不能表示数组a中元素的式子是()
①  *a
②  *p
③  a
④  a[p-a]
【单选题】 按照下题选出正确的输出结果如果有如下定义:int a[3][4]={{1, 2, 3, 4}, {5, 6, 7, 8},{9, 10, 11, 12}};,那么a[2][1]元素的结果是()?
①  12
②  11
③  10
④  9
【单选题】 已知:inta[][3]={1,2,3,4,5,6,7,8,9,0};则数组a的第一维的大小是()
①  2
②  3
③  4
④  无法确定;
【单选题】 若有说明:inta[][3]={{1,2,3},{4,5},{6,7}};则数组a的第一维的大小为:()。
①  2
②  3
③  4
④  无确定值
【单选题】 有以下程序,执行后输出结果是() 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
【单选题】 若有定义:int a[][3]={1,2,3,4,5,6,7,8};,则a数组的行数为()
①  无确定值
②  3
③  2
④  1
【简答题】 查找n在数组a中最后一次出现的位置(数组首元素的位置为零)。 例如:如果a数组中的元素为:1,5,2,5,6,8,7,4,3,0, 当n=5时,程序的输出结果为:5 is No.3 。 当n=10时,程序的输出结果应为:10 not found !。 #includevoid main( ) { int a[10]={1,5,2,5,6,8,7,4,3,0}; int i,k,n,f=0; scanf(%d, for(i=0;ii++) /************found************/ if([填空1]) { f=1; /************found************/[填空2] } if(f) printf(%d is No. %d\n, n,k); else printf( %d not found !\n }
随机题目
【单选题】 Last month, the little girl _______ well enough by the neighbors while her parents were volunteering.
①  is cared for
②  was cared for
③  will be cared for
④  cares for
【单选题】 ______ a year does your school have sports meeting?Twice a year.
①  How often
②  How soon
③  How long
④  How many times
【单选题】 Don’t worry. We have _______ to finish the work carefully.
①  enough time
②  less time
③  little time
④  few times
【单选题】 ______ either you or I good at drawing?
①  Am
②  Are
③  Is
④  Do
【单选题】 The room ______ as a meeting room.
①  used to being used
②  was used to being used
③  used to be used
④  was used to be used
【单选题】 Don’t _______ our hopes. As long as we pull together, we’ll make it.
①  give up
②  give out
③  give back
④  give away
【单选题】 Every morning, Tim often sees groups of middle-aged women _______ in the square.
①  dance
②  to dance
③  dances
④  danced
【单选题】 We decided to _______ to help the sick children with their homework.
①  go to the hospital
②  went to a hospital
③  going to a hospital
④  went to the hospital
【单选题】 You should _______ your shoes before you enter the dancing room.
①  get off
②  put off
③  take off
④  fall off
【单选题】 There are ________ people in front of the cinema gate so we have to wait ________ time to get into the cinema.
①  too much; much too
②  too many; too much
③  much too; too much
④  too much; too many