If int A[l][m][n] denotes any array where l= number of rows ,m =number of columns,n=number of planes then we can find address of any location A[i][j][k] by using row major formulas as follows
Add(A[i][j][k])=Base Address+(i*m*n+j*n+k)*w where w is the size occupied by each word or integer
column major
Add(A[i][j][k])=Base address +(k*l*m+j*l+i)*w