-
-
Save fser/a358b42b8d0b3117714c to your computer and use it in GitHub Desktop.
Compile using gcc -c {a,b}.c; gcc -o sample {a,b}.o. This program crashes, can you guess why?
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
char toto[] = "hello world"; |
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
extern char* toto; | |
int main(void) | |
{ | |
putchar(toto[2]); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment