2D Arrays: Creation and Access

AP Computer Science A· difficulty 4/5

A "jagged" 2D array

  • A

    Sorted in zig-zag

  • B

    Compile error

  • C

    Has equal-length rows

  • D

    Has rows of different lengths

    check_circle

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?

Related questions