-
-
Save seunghyukcho/6e103cd2c9e0f47199568b61ad2e1902 to your computer and use it in GitHub Desktop.
Definitions of global variables
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
#include <stdio.h> | |
void f(void); | |
int x = 15213; | |
int y = 15212; | |
int main() { | |
printf("x = 0x%x y = 0x%x\n", x, y); | |
f(); | |
printf("x = 0x%x y = 0x%x\n", x, y); | |
return 0; | |
} |
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
double x; | |
void f(void) { | |
x = -0.0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment