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
What are the differences between new and malloc?
What is a multimap c++?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
Is swift better than c++?
Explain the term memory alignment?
Describe the setting up of my member functions to avoid overriding by the derived class?
Is linux written in c or c++?
What causes a runtime error c++?
Explain what are mutator methods in c++?
What is microsoft c++ redistributable?
What is pure virtual function?
What do you mean by overhead in c++?
What are c++ storage classes?
What does it mean to declare a member function as virtual?
Show the declaration for a static member variable.