AP计算机教程8-6:简单多选题
0:00
How many columns does a have if it is created as follows int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};?
内层数组的长度为四,因而共有四列。
2
Which of the following statements assigns the letter S to the third row and first column of a two-dimensional array named strGrid (assuming row-major order).
记住索引是实际次序减一。
4
How would you get the value 6 out of the following array int[][] a = {{2, 4, 6, 8}, {1, 2, 3, 4}};?
6位于第一行第三列,对应的索引是[0][2]。3
0 条评论