title: C++ Memory Allocation
body: <p>When using C++, 
  if there is a class:</p>
  
  <pre><code>class MyClass
  {
      char memory1bye;
      int memory4bytes;
      int another4bytes;
  };
  </code></pre>
  
  <p>this class uses total of 9 bytes at memory… so if i do something like:</p>
  
  <pre><code>MyClass *t1;
  </code></pre>
  
  <p>This will give me a usable address for the Class, but will it allocate the 9 bytes? And will it call default constructor? 
  Or do I need to malloc those 9 bytes to the class? 
  If then I called something like:</p>
  
  <pre><code>t1 = (MyClass *)new MyClass;
  </code></pre>
  
  <p>will it be considered memory leak? In other words, what happens to the old address?</p>