Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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


Please Help Members By Posting Answers For Below Questions

What is a sequence in c++?

197


How to demonstrate the use of a variable?

210


Why do we use classes in c++?

222


How do I write a c++ program?

191


Can char be a number c++?

224






Explain container class.

246


How can virtual functions in c++ be implemented?

208


What is type of 'this' pointer?

212


Can turbo c++ run c program?

221


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

252


What is class in c++ with example?

201


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

229


How delete [] is different from delete?

216


Can a built-in function be recursive?

222


Define 'std'.

249