program memory and free stack in c++ code example Example: stack memory allocation c++ memory allocation