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--)
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:

Verified
Correct Answer:
Verified
Related Questions
Q20: A data type is called _ if
Q22: The _ of an array is the
Q23: The _ sort algorithm finds the location
Q24: Consider the following declaration: char str[15];.Which of
Q26: The function _ returns the length of
Q30: Given the following declaration: int j;<br>int
Q35: Given the declaration int list[20]; the statement
Q37: Suppose that sales is an array of
Q38: When you pass an array as a
Q40: Consider the following declaration: int alpha[5] =