Computer Science, asked by nazish137, 1 year ago

what is difference between malloc()and free()​

Answers

Answered by Shahi69hsgmailcom
1

Answer:

What is difference between malloc()/free() and new/delete. malloc allocates memory for object in heap but doesn't invoke object's constructor to initiallize the object. new allocates memory and also invokes constructor to initialize the object. malloc() and free() do not support object semantics.

please give love and give star please

Similar questions