Suppose function f calls function g, which in turn calls other functions. How does function g know where it should return to when its task is done?
I know a stack space is created at every function call, but how control is returned to the program after a function call is still a mystery to me. if anyone could briefly explain this process thanks.