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:
Post a Comment
comment on this post
Note: Only a member of this blog may post a comment.
‹
›
Home
View web version
No comments:
Post a Comment
comment on this post
Note: Only a member of this blog may post a comment.