Thread
:
Recursion in C
View Single Post
xpi0t0s
Mentor
9Jun2009,12:54
Why do you need to solve it with recursion? Is this an assignment/homework/coursework?
Anyway, all loops can be replaced with tail recursion, for a description of this see
http://en.wikipedia.org/wiki/Tail_recursion