About Lesson
Multidimensional Array:
More than 2-Dimensional Arrays are treated as Multidimensional Arrays. A multidimensional array is an array in which each element is itself an array. This creates a table-like structure of elements, organized in rows and columns (or more dimensions). Commonly used multidimensional arrays include 2D arrays (matrices) and 3D arrays.
Example:
int a[2][3][4];
Here, a represents two 2-Dimensional Array and each of these 2-D Arrays contains 3 rows and 4 columns.
The individual elements are:
a[0][0][0], a[0][0][1], a[0][0][2], a[0][1][0], ……………………………, a[0][3][0]
a[1][0][0], a[1][0][1], a[1][0][2], a[1][1][0], ……………………………, a[1][3][2]
The total no. of elements in the above array is 2*3*4=24.