In cSharp, a 2D array is written as int[,] myArray = new int[,]
However, it has come to my attention that int[][] my Array = new int[][]
is also OK.
I am wondering if the 2 has any difference or it is the same.
In cSharp, a 2D array is written as int[,] myArray = new int[,]
However, it has come to my attention that int[][] my Array = new int[][]
is also OK.
I am wondering if the 2 has any difference or it is the same.