The computer keeps track of Base (A), the address of the first element
A of A[M][N], and computes address Loc (A[J][K]) of A[M][N] using the formula
Loc (A[J][K] ) = Base (A) + W [M x K + J ]
ROW MAJOR ORDER:
Loc (A [J][K]) = Base (A) + W [N x J + K ]
W denotes the size, i.e; number of bytes per data element of the array A, M is total numbers of rows, and N is total number of columns in the array.