0
47kviews
Explain recursion as an application of stack with examples
1 Answer
written 6.2 years ago by |
Also, as a function calls to another function, first its arguments, then the return address and finally space for local variables is pushed onto the stack.
Recursion is extremely useful and extensively used because many problems are elegantly specified or solved in a recursive way.