Define memory leak?, C/C++ Programming

A: Memory that has no pointer pointing to it and there is no method to delete or reuse this memory(object), it causes Memory leak.

{

Base *b = new base();

}

Out of this scope b no longer present, however the memory it was pointing to was not deleted. Pointer b itself was destroyed while it went out of scope.

 

Posted Date: 3/19/2013 8:57:08 AM | Location : United States







Related Discussions:- Define memory leak?, Assignment Help, Ask Question on Define memory leak?, Get Answer, Expert's Help, Define memory leak? Discussions

Write discussion on Define memory leak?
Your posts are moderated
Related Questions
In this lab, please complete a given program to perform the following tasks: 1. Allocate a 10 by 5 2D byte array dynamically. The way of allocation must be consistent with page

Default assignment operator mange assigning one object to another object of the same class. It is member to member copy as shallow copy.

Aim: To implement a program to maintain information of employees in an educational institute using inheritance. Code:                       class staff {

write a program to find the area under the curve y=f(x) between x=a & x=b

manupulates operator precidence

Explain Processing A Data File? Mainly data file applications needs that a data file be altered as it is being processed. For instance in an application involving the processin

Problem : (a) Stacks can be implemented using arrays. Write down the following C or C++ function to (i) create a stack (ii) add an element to a stack (push). (b) Expl

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.   #include float start_poin


This assignment document will be distributed from Blackboard assignment folder. Some parts of the assignments will require you to research answers from your text book (you must rea