Which is legal, new int[] { {1, 2}, {} } or new int[][] { {1, 2}, {} }?
Is this legal? new int[3] {1, 2, 3, 4}
What about new int[] { 1, 2, (3), (4) }" ?
What about new int[] {1 + 2, 3 + 4} ?
What about this new int[a] {1, 2, 3, 4} and a is obtained at runtime?
To be sure, new MyType[][] { {}, {}, {} } is not legal, right?
Which is legal,
new int[] { {1, 2}, {} }ornew int[][] { {1, 2}, {} }?Is this legal?
new int[3] {1, 2, 3, 4}What about
new int[] { 1, 2, (3), (4) }"?What about
new int[] {1 + 2, 3 + 4}?What about this
new int[a] {1, 2, 3, 4}andais obtained at runtime?To be sure,
new MyType[][] { {}, {}, {} }is not legal, right?