What is the output of the following C++ code? (4)
intList[0] = 5;
for (int i = 1; i <>
intList[i] = 2 * intList[i - 1] + i;
for (int i = 0; i <>
cout <><>
cout
classList.push_back("Sheila");
classList.push_back("Anita");
classList.push_back("Cecelia");
classList.push_back("Henry");
for (unsigned int i = 0;
i <>
classList[0] = "Danny";
cout <>
c. What is the size of classList in (a)? What is the size of classList in (b)?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here