| Author: ManuFrancisMathew 12 Oct 2009 | Member Level: Bronze Points : 2 |
Hi, The above code is exemplary as a recursion sample,but when I tried the above code,from my exercise I got an infinite loop problem. But when I found out and added conditions to exit from the loops and also from recursion, based on certain comparisons etc the infinite loop problem was solved. So I guess, each coder must add conditions specific to his/her program situation when reusing the same functions.
|
| Author: Prashant Mishra 12 Oct 2009 | Member Level: Bronze Points : 1 |
Yes Mathew, You are right and also one more thing never pass the sql statement as an argument.
|