To prevent memory leaks, every call to new should be matched with a call to _______. 

  • delete 
  • free 
  • clear 
  • remove
When dynamic memory allocation is done using new, it's necessary to release that memory using delete to prevent memory leaks in C++. This ensures that every byte of memory allocated is properly released, maintaining the health and efficiency of the system.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *