-
When we are using heap operations what do we need to do to save the memory?
-
- delete the objects after processing
- rename the objects
- both delete & rename the objects
- Funcition
- None of these
Correct Option: C
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.