Definitions for "Row-major order"
The method of storing C-language arrays in memory. (Fortran arrays are stored in column-major order.) Row-major order requires the rows of a two-dimensional array to be in contiguous memory locations. For example, given the array a[3][4], element a[0][0] would be stored in the first location, a[0][1] in the second, a[0][2] in the third, and so on.
The default storage method for array s in C. Memory representation is such that the rows of an array are stored contiguously. For example, given the array a[3][2], the element a[0][0] would be stored in the first location, element a[0][1] in the second location, element a[1][0] in the third location, and so on. See also column-major order.
A sequencing method used for storing multidimensional arrays according to the subscripts of the array elements. In this method the rightmost subscript position varies most rapidly and completes a full cycle before the next subscript position to the left is incremented.