3 ms·
One is allocating on the stack and one on the heap. Allocating on the heap means you have to delete it yourself in C++. It's pretty staightforward, no?
by EGreg 13y ago
One is allocating on the stack and one on the heap.
Allocating on the heap means you have to delete it yourself in C++.
It's pretty staightforward, no?