...

/

Recursive Functions

Recursive Functions

Recursive functions are those which call themselves directly or indirectly. The recursive function consists of the termination condition and the body. We will briefly look at the recursive function and its properties in this lesson.

Introduction

The function that calls itself directly or indirectly is known as a recursive function. The recursive method consists of two parts: the termination condition and the body. Both of them are explained below:

Termination condition

One or more ...