Could anyone define "Memory leaks" well ?
'cause pretty hard for me to understand with C++ books.
tenoran
0
Newbie Poster
Recommended Answers
Jump to PostA memory leak is simply allocating memory and failing to release it when you're done. Technically, the following illustrates a memory leak:
#include <iostream> using namespace std; int main() { int *p = new int; *p = 10; cout<< *p << endl; }
In practice, the operating …
Jump to Postthe best bit is creating a loop of new arrays and watching the memory size increase :D
All 5 Replies
Narue
5,707
Bad Cop
Team Colleague
tenoran
0
Newbie Poster
Acidburn
0
Posting Pro
kc0arf
68
Posting Virtuoso
Team Colleague
Acidburn
0
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.