cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
new delete malloc and free
new delete malloc and free
Mar 2, 2013 at 12:44am UTC
cppct
(9)
if you mix new/delete with malloc/free i.e. with new use free and with malloc use delete, what will happen?
I think there will not be any compilation issue but there would be a memory likage. Please explain in detail.
Mar 2, 2013 at 12:48am UTC
LB
(13399)
This sounds suspiciously like an interview question. It's also a very direct answer on Google.
Last edited on
Mar 2, 2013 at 12:48am UTC
Topic archived. No new replies allowed.