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)
class Matrix {
protected:
int n[9000][420]; // is stack or heap if VVV is pointer?
};
void main()
{
Matrix* t = new Matrix(); // created on heap
}
It all comes down to how you create the parent object.
Heaps and stacks are of course an implementation detail, but in this case I think it’s fair to specify.