45
The stack
A box for that function is added to the top of the stack. Then you print
ok bye!
and return from the function call.
And you’re back to the
greet
function. There’s nothing else to be done,
so you return from the
greet
function too. This stack, used to save the
variables for multiple functions, is called the
call stack
.
Dostları ilə paylaş: