title: C++ Object Initialization (Stack)
body: <p>I saw today a c++ Initialization of a class which I am not familiar with.</p>
  
  <pre><code>CPrice price = CPrice();
  </code></pre>
  
  <p>The Initialization should normally look like this</p>
  
  <pre><code>CPrice price;
  </code></pre>
  
  <p>I would have guessed that the first one should throw an error or something.
  What happens here ? I would guess that the variable is on the stack because it wasn't initialized with <code>new</code> .</p>
  
  <p>I use Visual studio express 2012 with microsofts c++ compiler. Is it maybe something which is microsoft compiler specific and thus allowed ?</p>