Question
Which of the following declares an array that supports two rows and a variable number of columns?
- a. int arr[][] = new int[2][3];
- b. int arr[][] = new int[2][];
- c. int arr[][] = new int[][];
- d. int arr[][] = new int[][3];
b
Note
At least the first dimension of a multidimensional array must be specified.
PreviousNextRelated