C Program to calculate the power using recursion

The following is a C program to calculate the power using recursion:

Expected Output:

1st run:

2nd run:

How it works

The following figure shows how the recursive evaluation of 44 takes place.

Recursive evaluation of 4^4


Recommended Reading:

Leave a Comment

%d bloggers like this: