Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I expect the compiler would optimize the tail recursion into a loop, so the likely worst case is not that you blow the stack but that you spin for a while.


Not really, any expectations here are unsupported by C standards. Compiler is, by spec, allowed to do anything here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: