Wednesday, December 3, 2008
New vs. Malloc
New calls the "operator new(...)" method to allocate memory (like what malloc does), but memory allocation is followed by a call to the appropriate constructor. Also new is type-safe, yet malloc is not.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment