q1 write c statements to do the following1


Q1)  Write C++ statements to do the following:

1. Declare an array alpha of 15 components of the type int.

2. Output the value of the tenth component of the array alpha.

3. Set the value of the fifth component of the array alpha to 35.

4. Set the value of the fourth component of the array alpha to three times the value of the eight component minus 57.

5. Output alpha so that five components per line are printed.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: q1 write c statements to do the following1
Reference No:- TGS0479725

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)