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 |
Difference between delete and delete[]?
5 Answers Infosys, TCS, Virtusa,
Do we have private destructors?
What is c++ 11 and c++ 14?
What are separators in c++?
What is the keyword auto for?
Explain differences between alloc() and free()?
Difference between pointer to constant and constant pointer to a constant. Give example.
Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?
What is the difference between shallow copy and deep copy?
Can a Structure contain a Pointer to itself?
How can a '::' operator be used as unary operator?
Define token in c++.