Multi-Dimensional Arrays
A multi-dimensional array contains one or more arrays.
The dimension of an array indicates the number of indices you would need to select an element.
- For a two-dimensional array, you need two indices to select an element
- For a three-dimensional array, you need three indices to select an element
A multi-dimensional array contains one or more arrays.
The dimension of an array indicates the number of indices you would need to select an element.
- For a two-dimensional array, you need two indices to select an element
- For a three-dimensional array, you need three indices to select an element
Arrays more than three levels deep are difficult to manage.
No comments:
Post a Comment