Domanda di colloquio di Bloomberg

what is the difference between malloc and new ?

Risposta di colloquio

Anonimo

4 ago 2010

In C++, new operator create a new class and initialize it's value. Malloc is a library function which allocate space only.