Shall we use 'free' to free memory assigned by new, What are
the further consequences??
Answer Posted / uma sankar pradhan
No,we shouldnot use 'free' to free memory assigned by new.
It causes memory leak and sometimes hanging of the system
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do you generate a random number in c++?
Can you sort a set c++?
What is flush c++?
What is the latest c++ version?
Explain selection sorting. Also write an example.
Explain what happens when a pointer is deleted twice?
Where must the declaration of a friend function appear?
What do you mean by inheritance in c++?
What return value must conversion operators have in their declaration?
Define copy constructor.
What are the differences between new and malloc?
What is a null object in c++?
Is dev c++ a good compiler?
Can I make ios apps with c++?
Differentiate between late binding and early binding. What are the advantages of early binding?