Question 1: Write a C++ program to perform the following operations on an array:
Declare and initialize an array of 5 integers.
Access and print each element using a loop.
Modify the third element of the array. Print the modified array.
Question 2: Write a C++ program to:
Declare and initialize an array of 10 integers.
Calculate and print the sum of all elements.
Calculate and print the average of all elements.
Question 3: Write a C++ program to:
Reverse the elements of the array.
Print the reversed array.
int a[3] = {10, 20, 30}; cout << a[1];