Use heap for dynamic memory allocation
Do not use variable length arrays which lives on stack. It may cause stack overflow.
Use smart pointers for dynamic memory allocations on heap.
Do not use variable length arrays which lives on stack. It may cause stack overflow.
Use smart pointers for dynamic memory allocations on heap.