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

Verified
Correct Answer:
Verified
Related Questions
Q6: Consider the statement int list[10][8];.Which of the
Q10: Assume you have the following declaration int
Q11: The statement strlen("Marylin Stewart"); returns _.
Q13: If an array index goes out of
Q17: In C++, the null character is represented
Q18: What is the value of alpha[2]
Q18: For a list of length n, the
Q20: A data type is called _ if
Q28: The array index can be any integer
Q38: When you pass an array as a