Difference between malloc() and operator new.
Answers
Answered by
0
Not really. operator new will call malloc(), and then do nothing extra as your POD has no constructor and contains no non-static members with constructors.
operator new might be marginally slower as it test the return value of malloc() to see if it needs to raise an exception, but the difference is most likely not significant.
MARK BRAINLIEST...
operator new might be marginally slower as it test the return value of malloc() to see if it needs to raise an exception, but the difference is most likely not significant.
MARK BRAINLIEST...
Similar questions