Computer Science, asked by minakshidalai, 10 months ago

what are the different ways of representing a two dimensional array in memory?

Answers

Answered by shivinananya
1

Answer:

Column major order

Row major order

Explanation:

Column major -In this method the elements are stored column wise, i.e. m elements of first column are stored in first m locations, m elements of second column are stored in next m locations

Row major - In this method the elements are stored row wise, i.e. n elements of first row are stored in first n locations, n elements of second row are stored in next n

Similar questions