VitzzViperzz
Well-known member
Hello,
So I was reading this C# book and we have got to jagged arrays. It seems that they are used when there is no guarantee of length from the array. But what I don't understand is how they are declared and how they are used.
The book shows this as a bad example:
But what I don't understand is WHY would that be bad. He explains that it wouldn't be useful to use this because you can get to the same result by declaring a multidimensional array. But why? I am a little confused here.
Thanks
So I was reading this C# book and we have got to jagged arrays. It seems that they are used when there is no guarantee of length from the array. But what I don't understand is how they are declared and how they are used.
The book shows this as a bad example:
C#:
jaggedIntArray = new int[3][4];
But what I don't understand is WHY would that be bad. He explains that it wouldn't be useful to use this because you can get to the same result by declaring a multidimensional array. But why? I am a little confused here.
Thanks