title: Pointer allocation vs normal declaration
body: <p>sometimes I see in various C++ programs, objects declared and used like so:</p>
  
  <pre><code>object *obj = new object;
  obj-&gt;action();
  obj-&gt;moreAction();
  //etc...
  </code></pre>
  
  <p>Is there any benefit of doing that, instead of simply doing: </p>
  
  <pre><code>object obj;
  obj.action();
  obj.moreAction();
  //etc
  </code></pre>