Shall we use 'free' to free memory assigned by new, What are
the further consequences??

Answer Posted / aruna kumar samal

yes you can use free to free memory assignrd by new but it
wo not call the destructor.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you say that a template is better than a base class?

574


What does int * mean in c++?

625


Is vector a class in c++?

587


What are structs in c++?

591


Explain the concept of memory leak?

614






Explain the volatile and mutable keywords.

607


Why do we use classes in c++?

568


How is c++ used in the real world?

565


What is the meaning of string in c++?

564


What is c++ mutable?

694


What do you mean by early binding?

592


Mention the ways in which parameterized can be invoked.

532


What is the difference between *p++ and (*p)++ ?

766


What can I use instead of namespace std?

633


Describe exception handling concept with an example?

550