Solved

What Will the Following Code Do?
Const Int SIZE \quad

Question 18

Multiple Choice

What will the following code do?
const int SIZE = 5;
double x[SIZE];
for(int i = 2; i <= SIZE; i++)
{
\quad 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 the last, is initialized to 0.0
D) An error will occur when the code runs

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions