What is the difference between new ,delete and malloc,free?

Malloc dosent call any constructor at creation of object but new does

delete calls destructor when object is destryed but free will not call

new and being a operaters can be overloaded




No comments:

 
Top Blogs