Created
September 15, 2016 17:12
-
-
Save Kobzol/95beb4892f95a5945da54a069ee47b10 to your computer and use it in GitHub Desktop.
Recursion
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 n = 0; | |
void foo() { | |
void* x = nullptr; | |
printf("%d\n", ++n); | |
if (n >= 100) { | |
exit(0); | |
} | |
*((char**)(&x + 4)) -= 5; | |
} | |
int main() | |
{ | |
foo(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment