new and delete are said to be preprocessors while malloc and free are functions. What is meant by new and delete being preprocessors?
views:
116answers:
1
+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
2010-06-06 05:10:57