title: Class members created on stack or heap?
body: <p>Need to know if such a 3d matrix would be created in the stack or on the heap and if its on the stack how to new it and initialize default values correctly (memset)</p>
  
  <pre><code>class Matrix {
       protected:
           int n[9000][420]; // is stack or heap if VVV is pointer?
  };
  
  void main()
  {
           Matrix* t = new Matrix(); // created on heap
  }
  </code></pre>