title: C++ Memory deallocation(can still access old value after deallocated)
body: <p>the following code is supposed to free the dynamic memory of "num1" after the delete statement. I know it will still hold the memory address but what I don't understand is that why the old value "5" is still in there?</p>
  
  <p>Sorry I'm still new to programming, hope you guys can help me out.
  Thank You :)</p>
  
  <p><img src="https://i.stack.imgur.com/3CZS5.png" alt="enter image description here"></p>