int[][] myArray1 = new int[3][]; //交叉数据
int[][] myArray2 = new int[3][] { new int[3] { 5, 6, 2 }, new int[5] { 6, 9, 7, 8, 3 }, new int[3] { 3, 2, 4 } }; //交叉数据(赋值)
int[,] myArray5 = new int[3, 3]; //二维数据
int[,] myArray6 = new int[3, 3] { { 5, 6, 2 }, { 7, 8, 3 }, { 3, 2, 4 } }; //二维数据(赋值)
1、定义不同,二维数组直接定义,交叉数组是需要再定义每个数组的
2、二维数组是个规则的“矩形”,即每行元素个数都是一样的;交叉数组是没有这个限制的,可以一样也可以不一样
(16条消息) C# 交叉数组和二维数组的简单区别_iDream-CSDN博客https://blog.csdn.net/u013291337/article/details/47006557(16条消息) C#中二维数组int[,]与交叉数组int[][]的区别_cxu123321的博客-CSDN博客https://blog.csdn.net/cxu123321/article/details/98894051?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-0.no_search_link&spm=1001.2101.3001.4242