Computer Science, asked by gayana1804, 4 months ago

explain recursion with an example in C++

Answers

Answered by anjaligautam82874
2

Answer:

The process in which a function calls itself is known as recursion and the corresponding function is called the recursive function. The popular example to understand the recursion is factorial function. Factorial function: f(n) = n*f(n-1), base condition: if n<=1 then f(n) = 1.

Similar questions