C++ arrays are stored in row-major order. Row-major order means the last subscript varies the fastest.