A

Admin • 828.70K Points
Coach

Q. Which of the following is a rectangular 2D array?

  • (A) new int[3][]
  • (B) new int[3][4]
  • (C) new int[][]{{1},{2,3}}
  • (D) int[][] = {{}}

Explanation by: Admin
new int[3][4] creates a rectangular 2D array (3 rows, 4 columns).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.