8. Array Initialization :
int n[ 1 0 );
int n{5] = (1, 2,35, 8, 4, 31;
/ / n is an ar ray o1 10 i n I.eqer s
// initialize elements of array n to 0
for ( int i = 0; i < 1?; i++ )
n[ i ) = 0: // set element at location i to 0
23. using namespace
aefine WIDTH 5
define
int matrix [HEIGHT][WIDTH];
void main
counter - 0;
for (int i = 0 : i <HEIGHT ; i++)
for (int j = 0 ; j<WIDTH ;
matrixii]ij] - counter++;
cout<<endl;
include <iostroam>
using namespace
define WIDTH 5
define HEIGHT 3
int vector [HEIGHT*WIDTHj;
void main
int counter =
for (int i = 0 ; i <HEIGHT : i++)
for (int j = 0 ; j<WIDTH : j++)
vector[i*WIDTH{j] counter++;
cout<<vector(i*WIDTH+j]<C"
cout<<endl;