Programming Algorithms Question:
Download Questions PDF

State the problems which differentiate between recursive procedure and non-recursive procedure?

Answer:

A recursive procedure can be called from within or outside itself, and to ensure its proper functioning, it has to save in same order the return address so that it return to the proper location will result when the return to a calling statement is made. The procedure must also save the formal parameters, local variables etc.

Download Programming Algorithms Interview Questions And Answers PDF

Previous QuestionNext Question
Explain the depth of recursion?How do I rotate a 2D point?