Multidimensional and jagged Arrays?

The guided project Guided project - Develop conditional branching and looping structures in C# is a bit confusing for me, especially when it comes to multidimensional and jagged arrays.

Could you clarify the difference between them? As far as I know, there wasn’t an explanation about these earlier, or did I completely miss a lesson on this? The guided project discusses these two types of arrays as if I should already be familiar with them, but I don’t recall learning about them before.

Thanks in advance for your help! :blush:

The short answer is that they are both nested arrays in an array, but multidimensional arrays have the same number of elements in each of the nested arrays, while jagged arrays can have a different number of elements in each of the nested arrays.

Take a look here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/arrays#jagged-arrays

thank you very much :slight_smile: