C Interviews
C Interview
? 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(dosen?t)