Posts by Dougllas Beckhouser • 3 points
1 post
-
-1
votes1
answer63
viewsQ: Why can I still access a variable in the heap even after the function is over?
A while ago I learned about heap and stack, I was testing some codes when I came across a strange behavior in heap see; #include <iostream> using namespace std; void Test1(int *i[]); void…