title: Why or when to declare an int with a pointer?
body: <p>Is there any difference between these two other than their duration?</p>
  
  <pre><code>int ptr;
  int *ptr = new int;
  </code></pre>
  
  <p>I understand the concept of pointers but I don't see a much of a use for for delcaring an int with a pointer.</p>