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
Its not removed from memory once the function exits.
It remains in memory, in addTwo's stack frame, until some other process (or the same) re uses that portion of memory.
Until that point, accessing temp is undefined behaviour.