Skip to content

Instantly share code, notes, and snippets.

@ryana
Created September 12, 2011 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryana/1212408 to your computer and use it in GitHub Desktop.
Save ryana/1212408 to your computer and use it in GitHub Desktop.
do not fuck with
ra:~ ryan$ nl scope.c
1 int main() {
2 int c = 0;
3 if (1) {
4 int i = 0;
5 }
6 c = 5;
7 i = 10;
8 }
ra:~ ryan$ gcc scope.c -o scope
scope.c: In function ‘main’:
scope.c:9: error: ‘i’ undeclared (first use in this function)
scope.c:9: error: (Each undeclared identifier is reported only once
scope.c:9: error: for each function it appears in.)
ra:~ ryan$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment