Solved

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

Question 25

Multiple Choice

What is the output of the following C++ code? int alpha[5] = {2,4,6,8,10};
int j;
for (j = 4; j >= 0; j--)
\quad cout << alpha[j] << " ";
cout << endl;


A) 2 4 6 8 10
B) 4 3 2 1 0
C) 8 6 4 2 0
D) 10 8 6 4 2

Correct Answer:

verifed

Verified

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

Related Questions