In the computer memory, all elements are stored linearly using contiguous addresses. Therefore, in order to store a two-dimensional matrix a, two dimensional address space must be mapped to one-dimensional address space. In the computer's memory matrices are stored in either Row-major order or Column-major order form.
Matrix representation - Wikipedia
en.wikipedia.org > wiki > Matrix_representation
2D array can be defined as an array of arrays. The 2D array is organized as matrices which can be represented as the collection of rows and columns. ... We can assign each cell of a 2D array to 0 by using the following code:
1. for ( int i=0; i<n ;i++)
3. for (int j=0; j<n; j++)
5. a[i][j] = 0;
DS 2D Array - javatpoint www.javatpoint.com > data-structure-2d-array
The main difference between 1D and 2D array is that the 1D array represents multiple data items as a list while 2D array represents multiple data items as a table consisting of rows and columns. ... The elements in the array are in subsequent memory locations.
How is a 2D array represented in memory? - Mvorganizing.org
www.mvorganizing.org > how-is-a-2d-array-represented-in-memory
Two-dimensional (2D) arrays are indexed by two subscripts, one for the row and one for the column. Each element in the 2D array must by the same type, either a primitive type or object type.
www.cs.cmu.edu > ~mrmiller > Handouts > arrays2D