Solved

What Does the Following Code Do

Question 3

Multiple Choice

What does the following code do?
Const int SIZE = 5;
Double x[SIZE];
For (int i = 2; i <= SIZE; i++)
{
X[i] = 0.0;
}


A) Each element in the array is initialized to 0.0.
B) Each element in the array except the first is initialized to 0.0.
C) Each element in the array except the first and last is initialized to 0.0.
D) An error will occur when the code runs.

Correct Answer:

verifed

Verified

Related Questions