This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / c++ interviewer love this questionCan naybody point out me what is the diffrence between malloc() and new() ?
-bluelotus(时光漫步);
2003-6-19
{75}
(#1249184@0)
-
malloc ,which the function originally used in ANSI, malloc the meory for date, new malloc the memory for object also( text or function etc),
my 2 cens of RMB
-eagle_no1(瞎起哄);
2003-6-19
(#1249211@0)
-
new会执行构造函数, malloc这个古董就划块地方
-netee(netee);
2003-6-19
(#1249234@0)
-
no magic here, just a wrapper!
-eagle_no1(瞎起哄);
2003-6-19
(#1249235@0)