C Programming Tutorial
Computer Tutorial

Memory Map of a 2-Dimensional Array



Memory Map of a 2-Dimensional Array

The arrangement of array elements in a two dimensional array of students, which contains roll nos. in one column and the marks in the other This is because memory doesn’t contain rows and columns. In memory whether it is a one-dimensional or a two-dimensional array the array elements are stored in one continuous chain.

Diagram to show the arrangement of array elements of a two-dimensional array in memory

arrangement of array elements of a two-dimensional array in memory