1.

What is meant by memory leak? What are the reasons for it? How can we avoid such a situation?

Answer»

If the memory allocated using new operator is not de allocated using delete , that memory is left unused and not released for further allocation. Such memory blocks are called orphaned memory. On each execution the amount of orphaned block is increased. This situation is called memory leak. Use delete operator to avoid this.



Discussion

No Comment Found