What is recursive and recursion function?

When a function call itself directly or indirectly it is recursion and function which do this is called recursion function.

There are some rule for successful recursion.

  1. Function call itself directly or indirectly.
  2. There must be at least one non-recursion option.
  3. In general the function must move towards non recursive option.

Leave a Reply