471,850 Members | 1,064 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,850 software developers and data experts.

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 4064
Banfa
9,065 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
NeoPa
reply views Thread by NeoPa | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.