Created
October 12, 2009 21:54
-
-
Save andymatuschak/208791 to your computer and use it in GitHub Desktop.
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
int *foo() | |
{ | |
int x = 4; | |
return &x; | |
} | |
void tester() | |
{ | |
int *x = foo(); | |
*x = 8; // NOT OKAY | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment