In addition to being a music snob, I am a systems/network administrator for a local government agency. I'm studying to attain my degree in (currently) Business Computer Information Systems at St Cloud State, and taking a Programming in C course currently.
Tonight I studied recursion, and once getting my head around it I find that it simply makes sense. The most difficult thing to understand as far as I was concerned, is that a recursive function will "wait" for a return that does not include a function call. In other words, when I say:
return n * recursiveFunction(n-1);
It will attempt to solve that function and continue waiting until the recursiveFunction returns a value.
I don't know if that makes sense to anyone but me, but I guess it only matters that I know how to get the result I need...
...good night...
No comments:
Post a Comment