表示形式一: int[][] x;
表示形式二: int x[][]
表示形式三:int[] x[]---this kind of express is less in use ,but can be encounterd at the interview
example : int[] x,y[] : indicate that x is 一维,the y is 二维
本文介绍了三种定义二维数组的方法:int[][]x; intx[][]; int[]x[]; 并通过实例说明了这些不同形式的区别,如int[]x,y[];表示x为一维数组,y为二维数组。
表示形式一: int[][] x;
表示形式二: int x[][]
表示形式三:int[] x[]---this kind of express is less in use ,but can be encounterd at the interview
example : int[] x,y[] : indicate that x is 一维,the y is 二维

被折叠的 条评论
为什么被折叠?