how is heap memory different than stack memoyr code example Example: stack memory allocation c++ memory allocation