Question 2.
a. Write a C++ program that prints the following single
dimensional array and the memory addresses of each of
the element or value in the array.
int val[4] = {-11, 12, 16};
b. Write a C++ program that prints the following single
dimensional array and the memory addresses of each of
the element or value in the array. This program should
print the sum of all values of the array. Also, demonstrate
the use of FOR LOOP to print the values.
float b[3] = {-8, 3, 4, 45, -1};