What is Recursion?

Recursion: A recursive procedure is a procedure containing a call statement to itself on a call statement to a second procedure that result in a call statement back to the original procedure.
 It must have 2 properties:
I.            A base criteria for which the procedure does not call itself.

II.   Each time the procedure call itself, it must be closer to base criteria.

No comments

Powered by Blogger.