Duplicate of: In what cases do I use malloc vs new?
Just re-reading this question:
http://stackoverflow.com/questions/807939/what-is-the-difference-between-new-and-malloc-and-calloc-in-c-closed
I checked the answers but nobody answered the question:
- When would I use malloc instead of new?
There are a couple of reasons (I can think of two).
Let the best float to the top.