Hi, In this tutorial, we're going to learn about...
...how to store elements in a multi-dimensional array
...how to store elements in a multi-dimensional array
Before beginning this...
Let's say, I've an one dimensional array having 
 elements like A1, A2, A3 uptil An
Now, this is stored in my memory space as...
I've n-sub divisions like this
My elements are stored like this. and so on...
Let's jump to the case of a multi-dimensional array now
In a multidimensional array, the elements have to be stored in the 
 memory space just as the same way as a 1-D array.
If I had a multi-dimension array like this
This array will be stored in the same way as 
 my 1-D array was stored in the memory space.
Now, to store these elements (in the linear memory space), I've several possibilities.
I could store A1, A3, A4, A2, I am just filling up randomly.
A2, A4, A1, A3
Now, similarly I could've started it with A3, A4, A2, A1
Now, depending upon the number of elements I've in my 2-D array
I could've numerous possibilities like this.
Out of all these possibilities...
There are two main ways to store elements in a multi-dimensional array
Now, let's talk about these two ways one-by-one.
The first method is called the ROW MAJOR ordering.
And the second way is called the COLUMN MAJOR ordering
Let's start up with the ROW MAJOR ordering first.
