New and malloc difference

why to use new ahead of malloc is there any specific advantage of using new than that of malloc

Hi @navin_japes
new allocates memory and calls constructor for object initialization. But malloc() allocates memory and does not call constructor. Return type of new is exact data type while malloc() returns void*. new is faster than malloc() because an operator is always faster than a function. So its better to use new instead of malloc.