To declare an array in C++, you need to define
- The data type of elements in the array
- The name of the array
- The size of the array
Syntax:
Data_type Array_Name [size];
Depicted below is an example of a declaration of the array.
Example:
int club[10];