Computer Science, asked by Mohit0, 1 year ago

Difference between malloc() and operator new.

Answers

Answered by abhishekgupta28
0
The most relevant difference is that the new operator allocates memory then calls the constructor, and delete calls the destructor then deallocates the memory. new calls the ctor of the object, delete call the dtor. malloc & free just allocate and release raw memory

abhishekgupta28: please mark me as a brainliest
abhishekgupta28: please please please please
abhishekgupta28: please please please please please please
abhishekgupta28: please
abhishekgupta28: please please
Similar questions