C++ has several functions to acquire dynamic storage, most of which differ in some fundamental way. Several more are usually added by the OS.
Two of these are of spe
There are two differences I can think of:
Which function you must use to deallocate the memory, operator delete
vs. free()
.
A C++ program can legally provide its own version of ::operator new
and that version is guaranteed to be called by new
expressions. It's not possible to override malloc
with your own version.