Programming Algorithms Question:

Download Job Interview Questions and Answers PDF

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

Programming Algorithms Interview Question
Programming Algorithms Interview Question

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?