physical storage of - array using row-major order row row row figure physical storage of sample - array (topin - array using row-major order (bottomindex computation since multi-dimensional arrays are created and managed by instructions in the programming languageaccessing an individual element must also be handled by the language when an individual element of - array is accessedthe compiler must include additional instructions to calculate the offset of the specific element within the - array given - array of size mxn and using row-major orderingan equation can be derived to compute this offset to derive the formulaconsider the - array illustrated in figure and observe the physical storage location within the - array for the first element in several of the rows element ( maps to position since it is the first element in both the abstract - and physical - arrays the first entry of the second row ( maps to position since it follows the first elements of the first row likewiseelement ( maps to position since it follows the first elements in the first two rows we could continue in the same fashion through all of the rowsbut you would soon notice the position for the first element of the ith row is physical storage of - array using column-major order column column column column column figure physical storage of sample - array (topin - array using columnmajor order (bottom