2D Arrays: Creation and Access

AP Computer Science A· difficulty 2/5

For <code>int[][] a = {{1,2},{3,4}};</code>, <code>a[1][0]</code> is

  • A

    2

  • B

    3

    check_circle
  • C

    1

  • D

    4

Explanation

Row 1 (second), col 0 (first) = 3.

Want 10 more like this — adaptive to your weak spots?

Related questions