Re:Thinking About Recursion
by crimsonalucard on Thursday March 09, 2017 @01:39AM
(#13827507)
Lets say you have two functions. Function A and function B. Function A does a bunch of stuff and function B is executed in the middle of function A. Well when function B returns the program must remember the context of function A in order to execute the remaining steps. It does this by storing the entire context of function A on a stack. This is known as the 'call stack.' Essentially, all recursive functions can and usually are implemented using a stack.
[ Parent
| on HN ]
There are no comments on this comment yet.