What do you mean by the terms “Dimension” and “Subscript” when we talk about arrays?
Answer»
In an array "Dimension" is the NUMBER of INDICES, or subscripts, that you need for SPECIFYING an individual element. Dimensions and subscripts may be confusing.
A SUBSCRIPT is a number, while the dimension is a description of the range of acceptable keys.
You only need 1 subscript for each dimension of the array.
For example, arr[10][5] is an array having 2 dimensions:
One with size 10 and the other with size 5. You need 2 subscripts to address its elements. One between 0 and 9, inclusive; the other between 0 and 4.