Multiple Choice
What is the output of the following C++ code? int list[5] = {0,5,10,15,20};
int j;
for (j = 0; j < 5; j++)
cout << list[j] << " ";
cout << endl;
A) 0 1 2 3 4
B) 0 5 10 15
C) 0 5 10 15 20
D) 5 10 15 20
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q4: The statement int list[25]; declares list to
Q6: The declaration char str[] = "Hello there";
Q8: Assume you have the following declaration double
Q11: The statement strlen("Marylin Stewart"); returns _.
Q12: Consider the following statement: int alpha[25][10];.Which of
Q14: All components of an array are of
Q19: Which of the following correctly declares and
Q21: Which of the following correctly declares name
Q23: Consider the following statement: double alpha[10][5];.The number
Q31: Suppose that list is an array of