tags:

views:

116

answers:

1

new and delete are said to be preprocessors while malloc and free are functions. What is meant by new and delete being preprocessors?

+8  A: 

new and delete are C++ operators (like +, (), etc.) whereas malloc and free are (C) functions. Some operators (including new and delete) can be overloaded.

Skeptic