3 ms·
Sorry for posting a comment and deleting it, but just after posting I saw repeat: ... goto repeat; which is an endless loop, even if it is
by tspiteri 16y ago
Sorry for posting a comment and deleting it, but just after posting I saw
repeat:
...
goto repeat;
which is an endless loop, even if it is not a for loop, and just deleted the comment. Evidently I did not delete fast enough.
- alf 16y agoIn your defense, a modern compiler will generate code very similar code from the code linked in the OP. Non-optimized recursion is very expensive in C :) http://stackoverflow.com/questions/34125/which-if-any-c-compilers-do-tail-recursion-optimization/34129#34129 http://stackoverflow.com/questions/34125/which-if-any-c-comp...