C Program to calculate Factorial using recursion

The following is  a C Program to calculate Factorial using recursion:

Expected Output:

1st run:

2nd run:

How it works

The following figure demonstrates how the evaluation of 5! takes place:

Recursion in action

Leave a Comment

%d bloggers like this: