【单选题】【消耗次数:1】
若有定义:int a[2][4];,则引用数组元素正确的是()
a[0][3]
a[0][4]
a[2][2]
a[2][2+1]
参考答案:
复制
纠错
相关题目
【单选题】 若有定义:int a[10],*p=a;则错误引用数组元素a[2]地址的是()。
①  p+2
②  a+2
③  p[2]
④  *a+2
【单选题】 若有定义:int a[3][4],则对数组a 元素的正确引用是()。
①  a[2][4]
②  a[1,3]
③  a[2][3]
④  a[3][1]
【单选题】 已知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,7,8};,则a数组的行数为()
①  无确定值
②  3
③  2
④  1
【单选题】 若有以下定义,则数组元素a[3]的值是()。int a[5]={1,2,3}
①  0
②  1
③  2
④  3
【单选题】 有定义语句“int a[][3]={1, 2, 3, 4, 5, 6};”,则a[1][0]的值是____。
①  4
②  1
③  2
④  5
【单选题】 若有int b[4]={0,1,2,3},*p则数值不为3的表达式是:()
①  p=s+2,*(p++)
②  p=s+3,*p++
③  p=s+2,*(++p)
④  s[3]
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为?
①  2
②  4
③  6
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为(???)。
①  2
②  4
③  6
④  8
随机题目
【单选题】 — May I stop here? —No, you_____.
①  mustn’ t
②  might not
③  needn’ t
④  won’ t
【单选题】 Our ____ sensitivity decreases with age. By age 60, most people have lost 40 percent of their ability to smell and 50 percent of their taste buds.
①  sensible
②  senseless
③  sensitive
④  sensory
【单选题】 He did me a ____ turn by lending me ten pounds.
①  good
②  nice
③  fine
④  pretty
【单选题】 The farmer said all their hopes _____ the support of the local government.
①  decided on
②  rested on
③  based on
④  founded on
【单选题】 The millions of calculations involved, ____ by hand, would have lost all practical value by the time they were finished.
①  had they been done
②  they had been done
③  having been done
④  they were done
【单选题】 Once our chickens started laying eggs, we had such a ____ of eggs that we were giving many away to our neighbors.
①  output
②  surplus
③  production
④  plenty
【单选题】 Most importantly, such an experience helps ____ a heightened sensitivity to other cultures and will bring about a greater appreciation of one’s own culture as well.
①  coach
②  forsake
③  foster
④  censor
【单选题】 She didn’ t come to the party last Sunday._____, she must have made the party more exciting.
①  If she came
②  Would she come
③  Had she come Did she come
【单选题】 Some companies have introduced flexible working time with less emphasis on pressure ____.
①  than more on efficiency
②  and more on efficiency
③  and more efficiency
④  than efficiency
【单选题】 Tom ____ his new job with confidence.
①  set out
②  set off
③  set up
④  set about