The subscript operator
Note the use of the subscript operator [] in Listing 1 to declare the array.
The declaration syntax consists of:
That's all there is to declaring an array in C++.
(Declaring an array in Java is a little more complicated because all arrays in Java are encapsulated in separate objects.)