Basically, both are used for dynamic memory allocation.
- malloc() is used in C language while new() is used in C++ language.
- new() is a pre-processor while malloc() is function.
-new is fast as compare to malloc()