On Thu, Feb 02, 2012 at 02:47:22PM -0800, H. S. Teoh wrote: [...] > int fib(int n) { > if (n <= 2) return 1; > else return fib(n-2) + fib(n+1); [...]
Ugh. That should be fib(n-1), not fib(n+1). But no matter, such a thing shouldn't ever be actually written and compiled, as Andrei says. :) T -- Change is inevitable, except from a vending machine.