Question d’entretien chez Bloomberg

what is the difference between malloc and new ?

Réponse à la question d'entretien

Utilisateur anonyme

4 août 2010

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