Rows and Columns
Vocabulary
- row-major order in a 2-D array is 1st row, then 2nd row, then 3rd row, etc.
- column-major order in a 2-D array is 1st column, then 2nd column, then 3rd column, etc.
The default interpretation of a 2-D array is to consider the first index the row, and the second index the column:
- puz[r][c] is the variable in row r and column c
- puz[r] is row r