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