How to detect memory leaks in c++



How to detect memory leaks in c++..

Answer / freaxer

override new and delete, add memory tracker

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More C++ General Interview Questions

Why can’t you call invariants() as the first line of your constructor?

0 Answers  


How would you call C functions from C++ and vice versa?

0 Answers   Genpact,


What is a node class?

1 Answers  


What does it mean to declare a member function as virtual?

0 Answers  


Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].

1 Answers  






What is abstract class in c++?

0 Answers  


Explain about Virtual Function in C++?

0 Answers  


What is 'Copy Constructor' and when it is called?

1 Answers  


what are the characteristics of Class Members in C++?

0 Answers  


What is the difference between cin.read() and cin.getline()?

0 Answers  


Define the operators that can be used with a pointer.

0 Answers  


Do vectors start at 0 c++?

0 Answers  


Categories