How can I delete dynamic array pointer correctly
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1930459/c-delete-it-deletes-my-objects-but-i-can-still-access-the-data">C++ delete - It deletes my objects but I can still access the data?</a><br>
  <a href="http://stackoverflow.com/questions/3280410/why-doesnt-delete-destroy-anything">Why doesn&#39;t delete destroy anything?</a>  </p>
</blockquote>



<p>I've Created dynamic array, and I added values ​​to the values ​​of the array like that.</p>

<pre><code>int *pArr;
pArr = new int[10];

for(int i=0;i&lt;10;i++){
   pArr[i] = i+2;
}

delete[] pArr;  

// After deletion I can find the value of the array items.
cout &lt;&lt; pArr[5] &lt;&lt; endl;
</code></pre>

<p>As you see in the code above and in the last line, I can output the fifth element in the array without any problem .
With that supposed to be the array has been removed.</p>
