【单选题】【消耗次数:1】
合法的数组定义是()
inta[]={string};
inta[5]={0,1,2,3,4,5};
chara={string};
chara[]={0,1,2,3,4,5}
参考答案:
复制
纠错
相关题目
【单选题】 已知:inta[][3]={1,2,3,4,5,6,7,8,9,0};则数组a的第一维的大小是()
①  2
②  3
③  4
④  无法确定;
【单选题】 已知inta[4][4]={{1,2},{3},{4},{1,2,3}};问a[2][0]该元素的值是()
①  2
②  3
③  4
④  1
【单选题】 有定义语句“int a[][3]={1, 2, 3, 4, 5, 6};”,则a[1][0]的值是____。
①  4
②  1
③  2
④  5
【单选题】 以下程序的运行结果是()。intfun(inta[4][4]){inti;for(i=0;ii++)printf("%2d",a[i][2]);printf("\n");}main(){inta[4][4]={1,1,2,2,1,9,0,0,2,4,0,0,0,5,9,8};fun(a);}
①  1905
②  2000
③  2008
④  2009
【单选题】 若int类型占4个字节,有定义inta[][4]={1,2,3,4,5,6,7,8};则表达式sizeof(a[0][1])的值为()。
①  1
②  2
③  3
④  4
【单选题】 若有定义:inta[10]={0,1,2,3,4,5,6,7,8,9},*p=a;,则()表达式是错误的。
①  a[2]
②  p++
③  p[2]
④  a++
【单选题】 若有说明:inta[][3]={{1,2,3},{4,5},{6,7}};则数组a的第一维的大小为:()。
①  2
②  3
③  4
④  无确定值
【单选题】 以下程序段运行后s的值是()。inta[3][3]={1,2,3,4,5,1,2,3,4};inti,j,s=1;for(i=0;ii++)for(j=i+1;jj++)s+=a[i][j];
①  6
②  120
③  7
④  240
【单选题】 在执行inta[][3]={{1,2},{3,4}};语句后a[1][2]的值是()
①  3
②  4
③  0
④  2
【单选题】 这条旋律 “3 4 | 5 6 2 3 | 4 - 1 2 | 3 3 2 2 | 2 1 ||”的节拍为( )
①  2/4
②  3/4
③  4/4
【单选题】 若有定义:int a[][3]={1,2,3,4,5,6,7,8};,则a数组的行数为()
①  无确定值
②  3
③  2
④  1
随机题目
【单选题】 They couldn’t ______ to fly out to see us, and we couldnt either. We were all poor then.
①  offer
②  afford
③  provide
④  supply
【单选题】 Youve got a divorce? Why did he decide to______ you after seven years together?
①  keep company with
②  part company with
③  keep in touch with
④  stay in touch with
【单选题】 —How many poor counties will there be in our province by 2020?—There will be only a few, if _______.
①  much
②  some
③  any
④  many
【单选题】 Henry was very busy yesterday.Otherwise he______ to our my birthday party.
①  would have come
②  came
③  had come
④  will come
【单选题】 Our parents were strict. They requested that we______ television on week nights.
①  have not watched
②  not be watching
③  must not to watch
④  not watch
【单选题】 ---Why didn’t John call me ? ---Oh, his cell-phone ran out of power, otherwise he______ you.
①  had called
②  would have called
③  called
④  would call
【单选题】 OK, 1000 Yuan for one rug. Thats the ______!
①  dear
②  deal
③  trade
④  trading
【单选题】 If you take quality into consideration, you will find our price______.
①  changeable
②  readable
③  comfortable
④  reasonable
【单选题】 Thank you for your time. I’m looking forward to ______.
①  you reply
②  your reply
③  you answer
④  you to answer
【单选题】 The manager______ at 8:30 AM for the meeting, but he didnt show up.
①  ought to arrive
②  should have arrived
③  should arrive
④  was supposed to arrived