title: NULL pointer is the same as deallocating it?
body: <p>I was working on a piece of code and I was attacked by a doubt: What happens to the memory allocated to a pointer if I assign NULL to that pointer?</p>
  
  <p>For instance:</p>
  
  <pre><code>A = new MyClass();
  
  {...do something in the meantime...}
  
  A = NULL;
  </code></pre>
  
  <p>The space is still allocated, but there is no reference to it. Will that space be freed later on, will it be reused, will it remain on stack, or what?</p>