I\'ve been using C++ for a bit now. I\'m just never sure how the memory management works, so here it goes:
I\'m first of all unsure how memory is unallocated in a fu
Variable temp is stack allocated. That means it's deallocated when the function returns.
See e.g.: