Hacker News new | past | comments | ask | show | jobs | submit login

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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: