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
Q7: Assume you have the following declaration double
Q8: If an array index goes out of
Q11: All components of an array are of
Q15: What is the output of the
Q15: Arrays can be passed as parameters to
Q17: Suppose list is a one dimensional array
Q18: Suppose that sales is an array of
Q19: Suppose that list is an array of
Q20: The array index can be any integer
Q21: After the following statements execute,what are the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents