When can you tell that a memory leak will occur?

Answer Posted / harendra pal

A memory leak occurs when a program loses the ability to free a block of dynamically allocated memory.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the syntactic rules to be avoid ambiguity in multiple inheritance?

629


What is c++ and its uses?

619


Why do we use vector in c++?

598


What are smart pointers?

667


How does c++ structure differ from c++ class?

582






Can non-public members of another instance of the class be retrieved by the method of the same class?

608


What is function prototyping?

619


How to implement is-a and has-a class relationships?

583


What methods can be overridden in java?

667


What is function overloading c++?

570


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

599


What do you mean by translation unit?

597


What are the advantages of early binding?

608


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

677


Can comments be nested?

624