Created
April 5, 2009 20:22
-
-
Save nilium/90525 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> | |
#include "test.h" | |
int main(int argc, char ** argv) | |
{ | |
int i = globalVariable; | |
globalVariable = 50; | |
printf("%i\n%i\n", i, globalVariable); | |
return 0; | |
} |
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 "test.h" | |
int globalVariable = 0; |
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
#ifndef _EXAMPLE_H_ | |
#define _EXAMPLE_H_ | |
extern int globalVariable; | |
#endif /* end of include guard: _EXAMPLE_H_ */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment