//
Initializing an array.
#include
<iostream>
using namespace std;
int main()
{
int n[ 10 ];
// n is an array of 10 integers
// initialize elements of array n to 0
for ( int i = 0; i < 10; i++
)
n[ i ] = 0;
// set element at location i to 0
cout << "Element\tValue"
<< endl;
// output contents of array n in tabular
format
for ( int j = 0; j < 10; j++
)
cout << j << “\t”
<< n[ j ] << endl;
return 0;
}