title: C++ pointer to objects
body: <p>In C++ do you always have to initialize a pointer to an object with the <code>new</code> keyword?</p>
  <p>Or can you just have this too:</p>
  <pre><code>MyClass *myclass;
  
  myclass-&gt;DoSomething();
  </code></pre>
  <p>I thought this was a pointer allocated on the stack instead of the heap, but since objects are normally heap-allocated, I think my theory is probably faulty?</p>
  <p>Please advice.</p>