Created
December 22, 2019 04:39
-
-
Save kjk/b5749da97b016930b2c48a53346d8289 to your computer and use it in GitHub Desktop.
example for https://www.notion.so/essentialbooks/Visibility-of-function-prototypes-and-declarations-6c8eabb8f9f2428187331c87a55a57cb (made with https://codeeval.dev)
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
int main() | |
{ | |
// error: foo is called, but has not yet been declared | |
foo(2); | |
} | |
// this definition is not known in main | |
void foo(int x) | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment