# Column Major Order

I have a doubt understanding How a 3-Dimensional array is stored in column Major Order. An array in Row Major order is stored like [plane][row][column] So, for finding address of any element we cross planes first, rows next and then some elements in that column.

But How is a 3-Dimensional array stored in Column Major Order?

It's better if understood from a problem.

A is an array $[2.....6,3.....8,4.......10]$ of elements. The starting location is $500$. The location of an element $A(5,5,5)$ using column major order is __________.

• I do not understand your shifted array notation and it looks like school excersise (I might be wrong, should that be the case I am sorry for that), so it would be bad to give the answer, but I can check it if you describe what it is about and confirm your calculation if you need that. $A$ has index $500$?
– Evil
Nov 23 '16 at 18:08
• Above array notation means array as $A$, but array indices start from $2,3$ and $4$ respectively. Btw no one gives homework like this in india. Nov 24 '16 at 11:14