An array type has no padding in between its elements. Therefore, an array with element type
T is just a sequence of
T objects laid out in memory, in order.
A multidimensional array is an array of arrays, and the above applies recursively. For example, if we have the declaration
a is an array of 5 arrays of 3
a, which consists of the three elements
a, is laid out in memory before
a, which consists of
a. This is called row major order.