Skip to content

Instantly share code, notes, and snippets.

@seunghyukcho
Created February 10, 2021 11:29
Show Gist options
  • Save seunghyukcho/6e103cd2c9e0f47199568b61ad2e1902 to your computer and use it in GitHub Desktop.
Save seunghyukcho/6e103cd2c9e0f47199568b61ad2e1902 to your computer and use it in GitHub Desktop.
Definitions of global variables
#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;
}
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