Solved

What Is the Output of the Following C++ Code? Int \quad

Question 16

Multiple Choice

What is the output of the following C++ code? int list[5] = {0,5,10,15,20};
Int j;
For (j = 1; j <= 5; j++)
\quad Cout << list[j] << " ";
Cout << endl;


A) 0 5 10 15 20
B) 5 10 15 20 0
C) 5 10 15 20 20
D) Code results in index out-of-bounds

Correct Answer:

verifed

Verified

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

Related Questions