What does the operator new do? (6) What does the operator delete do? (6) Assume that the input is: XXXXXXXXXXWhat is the output of the following code? (8) int *intList; intList = new int[5]; for (int...




What does the operator new do? (6)



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="">



>




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here