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
What is the use of data hiding?
Is swift better than c++?
How does c++ sort work?
Does c++ have arraylist?
What is a static member?
Is c++ low level?
Explain friend class?
What are vtable and vptr?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Tell me what are static member functions?
What is object in c++ example?
What is purpose of abstract class?
What is a singleton c++?
Do the parentheses after the type name make a difference with new?