int testFun(int A)
{
return A+1;
}
int main()
{
int x=0;
int y= testFun(x)
cout<<y;
}
As we know, the stack saves the local variables, which means when I was in the main function, the stack had variables (x and y) and when I called the function (testFun) the stack had the variable(A) and when I return from (testFun) The stack pops the last frame But the quesion here, when I return from (testFun), how it know the last place it were in the main function before calling the (testFun)