Answer:
1. The output is 0
2. Each element in the array is initialized to 0.0
Explanation:
Solving (a): The output of the code
We have:
int numbers[4] = { 99, 87 };
cout << numbers[3] << endl;
The first line initializes the 0 and 1 index of the array to 99 and 87, respectively.
Other elements will be 0, by default.
So, the following code segment will output 0
cout << numbers[3] << endl;
Solving (b): What the given code will do?
The first and second line declares an array of 5 elements
However, the following iteration will only initialize the array with 0.0 starting from the second
for(int i = 2; i <= SIZE; i++) { x[i] = 0.0; }
Because, the counter is initialized to start from the second index.