Tuesday, June 20, 2006

how does New differ from Malloc?

New doesn't require typecasting.
New is an operator, not a function (operators are faster).
New calls the constructor of the class of the object being created.

0 Comments:

Post a Comment

<< Home