A "jagged" 2D array
- A
Sorted in zig-zag
- B
Compile error
- C
Has equal-length rows
- Dcheck_circle
Has rows of different lengths
Explanation
<code>int[][] m = new int[3][]; m[0] = new int[2]; m[1] = new int[5];</code>.
AP Computer Science A· difficulty 4/5
A "jagged" 2D array
Sorted in zig-zag
Compile error
Has equal-length rows
Has rows of different lengths
Explanation
<code>int[][] m = new int[3][]; m[0] = new int[2]; m[1] = new int[5];</code>.
Want 10 more like this — adaptive to your weak spots?