By: Editorial Staff | Last Updated:
In this program, we are going to share a Give an example of a recursive function. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a Give an example of a recursive function with the output.
Copy the below C program and execute it with the help of Turbo C compiler. At the end of this program, We have shared the output of this program.
int factorial(unsigned int);
int i = 8;
printf("Factorial of the number %d is %d\n", i, factorial(i));
int factorial(unsigned int i)
if(i < 2)
return i * factorial(i - 1);
Liked this program? Do Like & share with your friends.
Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari View all posts by Editorial Staff
Tags: recursion in c programming pdf, recursive function c, recursive function example, recursive function example c, recursive function factorial, recursive function math, what is recursion in c explain with example