posted 23 years ago
a) int[5][5]a = new int[][];
This is wrong because LHS expression cannot have size.
b) int a = new int[5,5];
This is wrong because (i) i has no array subscript. (ii) comma in RHS expression
c) int[]a[] = new int[5][5];
This is correct.
d) int[][]a = new[5]int[5];
This is wrong because the first [5] in RHS cannot be before int because the compiler would not know [5] of what type. This is similar to saying [] int a. This is also wrong.