what is difference between malloc()and free()
Answers
Answered by
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
Science,
6 months ago
Social Sciences,
6 months ago
Science,
6 months ago
Math,
1 year ago
Science,
1 year ago