问题
单项选择题
若有说明int a[3][4];,则a数组元素的非法引用是( )。
A. a[0][2*1]
B. a[1][3]
C. a[4-2][0]
D. a[0][4]
答案
参考答案:D
解析:本题考查数组的定义范围。本题定义a为3行×4列的数组,它可用的行下标最大为2,列下标最大为3。注意:a[0][4]超过了数组的范围。
若有说明int a[3][4];,则a数组元素的非法引用是( )。
A. a[0][2*1]
B. a[1][3]
C. a[4-2][0]
D. a[0][4]
参考答案:D
解析:本题考查数组的定义范围。本题定义a为3行×4列的数组,它可用的行下标最大为2,列下标最大为3。注意:a[0][4]超过了数组的范围。
用方框中所给词的适当形式填空,是短文正确、通顺、连贯(每词限用一次)。 | |
many fine oranges. One day, he found one of his oranges much 2_______ than the others. It was as big as a football. 3_______ had ever seen such a big orange. The poor man took the orange to the King. The king was so 4_______ that he gave the poor man a lot of 5_______ for it. When a 6_______ man heard of it, he said to himself, "it's only an orange. Why has the king given him so much money for it? I will 7_______ my gold cup to the king. He will give 8_______ money to me." The next day when the king 9_______ the gold cup, he said to the rich man,"what a nice cup! I will show you something 10_______. Please take this great orange." |