What does the operator delete do? (6)
Assume that the input is: 10 70 20 40 60. What is the output of the following code? (8)
int *intList;
intList = new int[5];
for (int i = 0; i <>
cin >> intList[i];
for (int i = 4; i > 0; i--)
intList[i] = intList[i] + intList[i - 1];
int sum = 0; for (int i = 0; i <>
{
cout <><>
sum = sum 1 intList[i];
}
cout <>
"sum="">
>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here