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
temp is allocated on the stack. So when the function returns, it is gone.
temp
C++ scope rules are similar to C#.