Howdy. I am very new to C# so I please forgive my ignorance. I was reading about jagged arrays and multidimensional arrays.
I am trying to understand why the following code will work as I would expect it to.
int intJaggedArray = new int; intJaggedArray = new int; Console.WriteLine(intJaggedArray.Length);
Where this code will produce an error
int[,] intMultiArray = new int[5,5]; Console.WriteLine(intMultiArray.Length);
Is a multidimensional array not an array of arrays (of fixed length)? I understand that I should already know that the length is going to be 5 (I did declare it so after all) but I just seek a deeper understanding of what makes it an invalid statement.