
12 Jun
2006
12 Jun
'06
5:48 p.m.
Thanks, Minh. So are things like recursion and memory sharing typically out the window?
Recursion works in C, but every function call pushes stack, so recursive depth is limited by RAM (compare to tail call optimization in many functional programming languages where the stack frame is reused if code is written iteratively with an accumulator). Most of the time for performance (and to be idiomatic) in C you will just write for and while loops and modify state in place. Welcom to C. Jared. -- http://www.updike.org/~jared/ reverse ")-:"