-1

Possible Duplicate:
What is differences between Multidimensional array and Array of Arrays in C#?
What's the difference between arrays of arrays and multidimensional arrays?

TYPE [,] ARRAY_NAME;
TYPE [][] ARRAY_NAME;

I can't differ between them , the first type declare an array of tow dimensional and the second also does the same thing As I think ?

Community
  • 1
  • 1
Anoos Sb
  • 405
  • 2
  • 6
  • 16

2 Answers2

1
Peter
  • 37,042
  • 39
  • 142
  • 198
0

[,] is multidimensional array

[][] is jagged array

http://www.dotnetperls.com/jagged-array

Milan Raval
  • 1,880
  • 1
  • 16
  • 33