* This program is example of recursive call of function.
//Written by : Latest Technology Guide
//Title : C Language Example # 48 Recursive Function Call Example # 02 Find out Factorial Using Recursive Function.
long int ans;
long int fac(int,int,int);
printf("How Many Elements are there : ");
printf("Factorial is : %ld",ans);
long int fac(int no,int fact,int n)
fact = no * (fac(no+1,fact,n));
* Program will call function itself (recursive call) to display factorial of given number.
Note: All programs are developed and tested using Turbo C++ 3.0 under Windows XP. We just want to provide guidelines to the users. If you are using any other Compiler or other operating system they you need to modify this program as per your requirements.