Multidimensional Arrays
Learn about multidimensional arrays and jagged arrays.
We'll cover the following
In this lesson, you will move towards the advanced concepts of arrays, i.e., multidimensional arrays. A two-dimensional array is the simplest form of a multidimensional array. You can see a two-dimensional array as an array of the one-dimensional array for easier understanding. In C#, the multidimensional arrays are also known as rectangular arrays because the size of every row will always be the same.
Multi-dimensional array declaration and initialization
Two-dimensional array declaration in C#:
data_type [,] arr;
Initialization: The values can be provided at the time of the declaration of an array using initializer syntax.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.