Skip to content

Commit

Permalink
Created 4.1.4 Understanding Tail Recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
minnukota381 authored Mar 4, 2024
1 parent 3d4ed0f commit cadd834
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
int factTR(unsigned int n, unsigned int a) {
if (n == 0)
return a;
else
return factTR(n - 1, n * a);
}

0 comments on commit cadd834

Please sign in to comment.