

MCQOPTIONS
Saved Bookmarks
1. |
Which of these array declaration statements are not legal? |
A. | int[] i[] = { { 1, 2 }, { 1 }, {}, { 1, 2, 3 } }; |
B. | int x[] = new int[2] {1, 2}; |
C. | int x[][] = new int[][] { {1, 2, 3}, {4, 5, 6} }; |
D. | int x[][] = { { 1, 2 }, new int[ 2 ] }; |
Answer» C. int x[][] = new int[][] { {1, 2, 3}, {4, 5, 6} }; | |