Array storage in Fortran and C/C++

C and C++ has row-major storage
(two-dimensional arrays are stored row by row)
Fortran has column-major storage
(two-dimensional arrays are stored column by column)
Multi-dimensional arrays: first index has fastest variation in Fortran, last index has fastest variation in C and C++

previousnexttable of contents