What's the result if I use delete p instead of delete [] p for an array?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/659270/why-is-there-a-special-new-and-delete-for-arrays">Why is there a special new and delete for arrays?</a><br>
  <a href="http://stackoverflow.com/questions/1553382/-pod-freeing-memory-is-delete-equal-to-delete">( POD )freeing memory : is delete[] equal to delete ?</a>  </p>
</blockquote>

<p>What's the result if I use delete p instead of delete [] p for an array?
I met two answers for this problem.</p>

<p>1 only the first element will be freed.</p>

<p>2 there comes to a catastrophic end.</p>

<p>My question is, how can this two happen? Why there would be a disaster if only the first element is freed? Can anybody offer me an example?</p>
