+ 2

What is the difference between a multi-dimensional array and a jagged array?

I recently read through the lesson on multi-dimensional and jagged arrays and I'd be lying if I said I was able to understand it. What exactly is a multi-dimensional array and what is a jagged array?

15th Jun 2019, 6:15 AM
PirateOnThePlank
2 Antworten
+ 4
Jagged array can differ in size. Multi dimensional arrays are all the same size Jagged array 2,2 1,2,3,4,5 4,8,9 Muliti dimensional array 1,2,5,6 4,7,9,8 5,6,8,9
15th Jun 2019, 12:50 PM
sneeze
sneeze - avatar
+ 2
Oh, that makes sense. Thanks
15th Jun 2019, 1:40 PM
PirateOnThePlank