delete & new in c++
<p>This may be very simple question,But please help me.</p>

<p>i wanted to know what exactly happens when i call new &amp; delete , For example in below code</p>

<pre><code>char * ptr=new char [10];

delete [] ptr;
</code></pre>

<p>call to new returns me memory address. Does it allocate exact 10 bytes on heap, Where information about size is stored.When i call delete on same pointer,i see in debugger that there are a lot of byte get changed before and after  the 10 Bytes.</p>

<p>Is there any header for each new which contain information about number of byte allocated by new.</p>

<p>Thanks a lot</p>
