7.2: Two-Dimensional Arrays
Read this chapter, which introduces two-dimensional arrays.
A two-dimensional array is a data structure that contains a collection of cells laid out in a two-dimensional grid, similar to a table with rows and columns although the values are still stored linearly in memory.
Each cell in a two-dimensional array can be accessed through two indexes that specify the row number and column number respectively. Like-one dimensional array, the range of each index is from zero to the size of the row or column minus one. A nested for loop is commonly used to initialize the values in a two-dimensional array.
Attempt this ungraded quiz.