2 ms·
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.
by cryptonector 7y ago
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.
- rini17 7y agoNot really, any expectations here are unsupported by C standards. Compiler is, by spec, allowed to do anything here.