Which of these array declaration statements are not legal? Select the two correct answers. (a) int[] i[]

Question:

Which of these array declaration statements are not legal? Select the two correct answers.

(a) int[] i[] = { { 1, 2 }, { 1 }, {}, { 1, 2, 3 } };

(b) int i[] = new int[2] {1, 2};

(c) int i[][] = new int[][] { {1, 2, 3}, {4, 5, 6} };

(d) int i[][] = { { 1, 2 }, new int[ 2 ] };

(e) int i[4] = { 1, 2, 3, 4 };

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: