Home » C++ Programming » Dynamic Memory » Question
  1. When we are using heap operations what do we need to do to save the memory?
    1. delete the objects after processing
    2. rename the objects
    3. both delete & rename the objects
    4. Funcition
    5. 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.



Your comments will be displayed only after manual approval.