|
-
January 1st, 2012, 01:06 AM
#1
Memory managment in C++
Hi All,
I am a newbie at C++ (Transferring from Java), and would like to understand some memory issue in C++.
Say I have an array of objects, dynamically allocated using new[] operator. When I release it, I use delete[] operator.
My question is how does the OS know the amount of memory to release? Or in other words, how does it keep track of the size of each array?
Does it put the size of the array just behind its beginning?
Does it keep a table somewhere telling for each address what size is allocated after it?
Thanks,
Guy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|