1.

What Are The Differences Between New And Malloc?

Answer»
  • New initializes the ALLOCATED memory by CALLING the constructor. Memory allocated with new should be released with DELETE.
  • MALLOC allocates uninitialized memory.
  • The allocated memory has to be released with FREE. New automatically calls the constructor while malloc (doesn’t).



Discussion

No Comment Found