title: Does a pointer point to the stack or heap after using delete?
body: <p>In these lines of C++ code:</p>
  
  <pre><code>int * p = new int(33);
  delete(p);
  *p = 13;
  cout &lt;&lt; *p &lt;&lt; endl;
  </code></pre>
  
  <p>The output is 13;</p>
  
  <p>P points to an address on the heap initially, then I use the delete keyword to deallocate p's assigned memory address, but can still assign the memory address a value of 23; Is this the same address on the heap that p pointed to after "int * p = new int(33)"  or does p point to an address on the stack after using delete(p)?</p>