12-06-2002, 09:30 AM
Been trying to figure out what is a recursive procedure.
In most programming language, any example, how are recursion use?
Thanks if anyone can enlighten me on that.
12-06-2002, 10:20 AM
Ah, yes. RECURSION. I had some trouble trying to figure out what the hell that was long ago. It's a pretty simple concept. It just may be hard to think the entire process in your head.
It's basically a method, or function, calling itself, getting itself into a deeper and deeper stage.
Here's a simple example of recursion in programming. It might take some time to understand at first, but I'm pretty sure you'll get it.
int factorial(int n)
return factorial(n-1) * n;