you can use loop for to output each element of array. But remember, to start the loop from 0, because the first element of array is 0.
for example:
1 2 3 4 5
int array[5];
for(int i=0; i<5 ; i++){
array[i]= i*2;
}
now to output each element of array:
1 2 3
for(int i=0; i <5 ; i++){
cout << array[i];
}
or you can call an additional element of array using this
1 2 3
cout << array[2]; //show the value from the array
cout << *(array+2); //show the value from the array
cout << array+2; //show the address of this element