notes programming language stores the array in either of the two way row major order column major order in row major order elements of st row are stored first in linear order and then comes elements of next row and so on in column major order elements of st column are stored first linearly and then comes elements of next column when above matrix is stored in memory using row major order form then the representation will be as shown in figure ( ( row ( ( ( row ( ( ( row ( representation with column major form will be( ( column ( ( ( column ( ( ( column ( number of elements in any two-dimensional array can be given byno of elements (ub lb (ub lb whereub is upper bound of st dimension lb is lower bound of st dimension ub and lb are upper and lower bounds of nd dimensions lovely professional university (