I would like to know if anyone knows what is the difference between these two ways of declaring multidimensional matrices in c#
.
string[][] m = new string[2][]; // primera forma
string[,] m2 = new string[2, 2]; // segunda forma
And because when I declare it in the following way:
string[][] m = new string[2][2]; // <- me marca un error
I mark an error by assigning the second length between the second pair of brackets.
As a note I want to mention that I always declare them in the second way mentioned in the first block of code.