When can you tell that a memory leak will occur?
Answer / 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 |
what are the types of Member Functions?
When should we use multiple inheritance?
What is design pattern?
What is flush programming?
What is conversion constructor?
What is the purpose of the noexcept keyword?
What is realloc() and free()? What is difference between them?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
What is an adjust field format flag?
What is constructor c++?
Describe friend function & its advantages.