-
-
Save mame/1162542 to your computer and use it in GitHub Desktop.
Is it able to eliminate the tail call bar() ?
This file contains 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
int *p; | |
void foo(int *n) { | |
p = n; | |
} | |
void bar() { | |
print("%d\n", *p); | |
} | |
void baz() { | |
int n = 0; | |
foo(&n); | |
bar(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah try this