New course! Every coder should learn Generative AI!
Try a free lesson0
What Is the difference betwen new and malloc?
What Is the difference betwen them and how do they work?
1 Answer
+ 4
It's explained in isocpp faqs.
read:
https://isocpp.org/wiki/faq/freestore-mgmt#new-malloc-diff