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
#A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrom

expression and its types with example programs

Create a C language code, only one program, to implement the following task. Task: Write C code for a program that implements a digital clock (HH:MM:SS). The clock inclu

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Explain the For Loop - Computer Programming? Similar to the while statement, for loop is an entry controlled loop and the code of the for loop will be executed itereatively. Th

This project simulates an application called tracker for the Department of Transportation (DOT) in which highway traffic data is accumulated in real time using various sensing equi

hwat is the area fsdjlakl;aeklfjtealrtl;gka

describe how identifiers of different data type are defined using this notaion?

The Shift Operators There are 2 shift operators : left shift ( >). These are binary operators. The format is                 operand >> number or operand   The first

To complete this assignment, edit the following constructors and methods: 1. public MaxPQ(Key[] keys) - change the following loop for (int k = N/2; k >= 1; k--) sink(k);