...

/

Accessing Two-Dimensional Arrays

Accessing Two-Dimensional Arrays

Learn how to access the elements stored in a two-dimensional array.

Array traversal

To access elements in a two-dimensional array, we have to specify a row and column index.

Like a one-dimensional array, the index of rows and columns starts at 0. For example, the first element of a two-dimensional array is at index [0][0], the second element is ...