468,513 Members | 1,759 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

allocate - deallocate memory

2
Can anyone please instruct me how to allocate - deallocate heap memory in C++ without using the "new " and "free" available.
Explaination using the code will be appreciated.
Sep 8 '06 #1
2 3994
Banfa
9,056 Expert Mod 8TB
You can use

"new" and "delete"

or

"malloc" and "free"

or

"calloc" and "free"

those are the only options there is no "new" and "free" option.
Sep 8 '06 #2
Saura
2
You can use

"new" and "delete"

or

"malloc" and "free"

or

"calloc" and "free"

those are the only options there is no "new" and "free" option.
I am actually trying to write the code for my own "new" and "delete"
Any idea about how to do it?
I mean a memory management system of my own.
Thanks.
Sep 9 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Alan Gifford | last post: by
4 posts views Thread by alan | last post: by
4 posts views Thread by Franklin Lee | last post: by
6 posts views Thread by bluekite2000 | last post: by
6 posts views Thread by Peter Hickman | last post: by
20 posts views Thread by mariano.difelice | last post: by
1 post views Thread by =?Utf-8?B?Tm90cmUgUG91YmVsbGU=?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.