Bloomberg interview question

what is the difference between malloc and new ?

Interview Answer

Anonymous

4 Aug 2010

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