Multiple choice

Which of the following are valid declarations for two dimensional array?

  1. Int[][] Array;

  2. Int[] Array[];

  3. Int[2][2] Array;

  4. Both (1) and (2)

  5. All of these

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Both options (1) and (2) are valid for declaring the two dimensional array. So, this answer is correct.