1 #include <stdio.h> 2 3 int foo = 456; 4 5 int main()6main() { 7 int foo = 123; 8 { 9 extern int foo; 10 void func(); 11 extern void func2(); 12 13 printf("%d\n", foo); 14 func(); 15 func2(); 16 } 17 printf("%d\n", foo); 18 return 0; 19 } 20 21 extern void func()22func() { 23 puts("func"); 24 } 25 26 void func2()27func2() { 28 puts("func2"); 29 } 30 31