What is the value of alpha[2] after the following code executes? int alpha[5]; int j; for i 0;j< 5;j++) alphail 2 *j+1; 1 с. 5 d. 6 а. b. 4 ANSWER:
What is the output of the following C++ code? 10. int list[5] (0, 5, 10, 15, 20); int j; for (j 1;j5; j++) cout << list[j] <<" "; cout << endl; c. 5 10 15 20 20 d.
Code results in index out-of-bounds
a. 05 10 15 20
b. 5 10 15 20 0
c. 5 10 15 20 20
d. Code results in index out-of-bounds