0

what is the difference between both of the below declarations ?

   private string[][] a = new string[0][];
   private string[,] b = new string[0, 0];
user2864740
  • 60,010
  • 15
  • 145
  • 220
nayef harb
  • 753
  • 1
  • 10
  • 19
  • 1
    http://stackoverflow.com/questions/12567329/multidimensional-array-vs This has been asked before. The first may be known as a jagged array, and the latter, a 2 dimensional array –  Jul 24 '15 at 10:13
  • 1
    i didn't know the name of the arrays probably why didnt show in my result when i asked the question. Thanks a lot for your help. – nayef harb Jul 24 '15 at 10:25

0 Answers0