Quote:
Originally Posted by sharmila
Typically, array new will insert information adjacent to the memory allocated for an array that indicates not only the size of the block of storage but also the number of elements in the allocated array. This information is examined and acted upon by array delete when the array is deleted.
Actually thats not true. Allocate a pointer using
int *i = new int[5];
and then try seeing the memory around the allocated area (I saw that in VC++ 6) and you will not find that data anywhere.