开发者

New, delete, malloc, free

开发者 https://www.devze.com 2023-01-02 05:18 出处:网络
new and delete are said to be preprocessors while malloc and free are functions. 开发者_开发百科What is meant by new and delete being preprocessors?new and delete are C++ operators (like +, (), etc.)

new and delete are said to be preprocessors while malloc and free are functions. 开发者_开发百科What is meant by new and delete being preprocessors?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消