What is the difference between new/delete and malloc/free?
new
delete
malloc
free
Related (duplicate?): In what cases do I use malloc vs
The most relevant difference is that the new operator allocates memory then calls the constructor, and delete calls the destructor then deallocates the memory.