Last active
December 22, 2015 23:19
-
-
Save ysmood/6546007 to your computer and use it in GitHub Desktop.
gcc test: `gcc -O3 tail_recursion.c`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdio.h" | |
| void foo(x) { | |
| printf("%d\n", ++x); | |
| foo(x); | |
| } | |
| int main(int argc, char const *argv[]) { | |
| foo(1); | |
| return 0; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gcc -O3 tail_recursion.c