Bloomberg Interview Question

what is the difference between malloc and new ?

Interview Answer

Anonymous

Aug 4, 2010

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