...
Code Block | ||
---|---|---|
| ||
int x; /* externally linked */ int main(void) { static int x; /* internally linkedunlinked */ /* use of identifier x results in undefined behavior */ } |
...
Code Block | ||
---|---|---|
| ||
int external_x; /* externally linked */ int main(void) { static int internal_x; /* internally linkedunlinked */ /* we're good to go */ } |
...