Pergunta de entrevista da empresa Bloomberg

what is the difference between malloc and new ?

Resposta da entrevista

Sigiloso

4 de ago. de 2010

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