When we are using heap operations what do we need to do to save the memory?
A. rename the objects
B. delete the objects after processing
C. both a & b
D. None of the mentioned
Answer:A
When we are using heap operations what do we need to do to save the memory?
A. rename the objects B. delete the objects after processing C. both a & b D. None of the mentioned
Explanation:when you allocate memory from the heap, you must remember to clean up objects when you’re done! Failure to do so is called a memory leak.