4 ms·
How is 'goto repeat' not a loop? You've just 'spelled out' a for-loop, I think. :-)
by lysium 16y ago
How is 'goto repeat' not a loop? You've just 'spelled out' a for-loop, I think. :-)
- tspiteri 16y agoSorry 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...