Suppose that you have the following declaration: (4) int alpha[5] = {3, 12, -25, 72}; If this declaration is valid, what is stored in each of the five components of alpha. Consider the following...


Suppose that you have the following declaration: (4)


int alpha[5] = {3, 12, -25, 72};



If this declaration is valid, what is stored in each of the five components of alpha.


Consider the following declaration. (2)


int list[] = {3, 8, 10, 13, 6, 11};


a. Write a C++ code that will output the value stored in each component of list.


b. Write a C++ code that will set the values of the first five components of list as follows: The value of the the ith component is the value of the ith component minus three times the value of the (i11)th component.





May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here