A multidimensional array is an array of arrays. You can use a subscript operator to access a primitive element in an array at the innermost level. You can also use a subscript operator to access an array at any level.
You can use subscript operators to return the following values:
A primitive element in an array at the innermost level.
One or more arrays at any level.
A subset of one or more arrays at any level.
To access a primitive element in an array at the innermost level, you use more than one subscript operator. The number of dimensions in a multidimensional array determines the number of subscript operators to use. Each subscript operator must contain one index value. The data type of the return value is the same as the data type of the primitive elements in the array.
For example, in a two-dimensional array, you use two subscript operators. The first subscript operator accesses the parent array. The second subscript operator accesses the child array within the parent array.
Examples
Consider the following two-dimensional parent array that contains three child arrays and each child array contains string elements: