Created
April 26, 2016 14:24
-
-
Save brimston3/42ab8c6e9bb5e03184f2e91e67f3a422 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
#include "stdio.h" | |
// Only for extremely evil people | |
#undef NULL | |
#define NULL 7 | |
int main() | |
{ | |
printf("%d\n", NULL); | |
return 0; | |
} | |
#if 0 | |
brimston3@digcraft:~/test$ gcc undef_null.c | |
brimston3@digcraft:~/test$ ./a.out | |
7 | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment