【单选题】【消耗次数:1】
若有以下说明,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
【单选题】 若有int b[4]={0,1,2,3},*p则数值不为3的表达式是:()
①  p=s+2,*(p++)
②  p=s+3,*p++
③  p=s+2,*(++p)
④  s[3]
【单选题】 以下程序段运行后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[3][4];则表达式&a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
【单选题】 若有定义:int a[][3]={1,2,3,4,5,6,7,8};,则a数组的行数为()
①  无确定值
②  3
③  2
④  1
【单选题】 若有定义:inta[3][4];则表达式a[2][1]-a的值为()。
①  7
②  8
③  9
④  10
【单选题】 若有说明:int a[][3]={{1,2,3},{4,5},{6,7}}; 则数组a的第一维的大小为:()
①  2
②  3
③  4
④  无确定值
【单选题】 按照下题选出正确的输出结果如果有如下定义: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[][3]={1, 2, 3, 4, 5, 6};”,则a[1][0]的值是____。
①  4
②  1
③  2
④  5
【单选题】 表达式16/4-2^3*8/4Mod5\2的值为()。
①  2
②  14
③  20
④  4
随机题目
【单选题】 The old man got into the ___ of storing money under the bed.
①  tradition
②  habit
③  use
④  custom
【判断题】 Last week he promised that he would come today, but he hasnt arrived yet.
①  正确
②  错误
【判断题】 We wish that you hadnt have such a lot of work, because we know you would have enjoyed the party.
①  正确
②  错误
【判断题】 Ever since he arrived, he has been complaining constantly about the weather.
①  正确
②  错误
【判断题】 He as well as I agree with you on that point.
①  正确
②  错误
【判断题】 Without the radar receiver, the large antenna would be of no use.
①  正确
②  错误
【判断题】 He had his leg break when he slipped on a piece of ice.
①  正确
②  错误
【判断题】 I dont swim now, but I used to do when I was a kid.
①  正确
②  错误
【判断题】 His government insisited that he stay until he finished his degree.
①  正确
②  错误
【判断题】 The girl is made to do her homework right after she comes from school.
①  正确
②  错误