<<< The C++ Array Type | Index | Elements of an Array >>> |
To create an array of ten integers, declare it like this:
int a[ 10 ];
C++ array has the following properties:
number of elements is constant
sizeof( a ) returns size of array a in bytes.
sizeof( a ) / sizeof( int ) returns the number of elements in the array.
<<< The C++ Array Type | Index | Elements of an Array >>> |