文章目录
以下二维数组声明合法的是( )
A、char[][] ch = new char[][]
B、char[2][3] ch = new char[][]
C、char[2][] ch = new char[][3]
D、char[][] ch = new char[2][3]
E、char ch[][] = new char[2][3]
F、char[][] ch = new [2]char[3]
G、char[] ch[] = new char[2][3]
正确答案:DEG
char[]是一维数组,ch[]是一维数组,合起来就是二维数组,char[] ch[]等价于char[][] ch和char ch[][]