1 extern int counter; 2 3 extern void g(void); 4 f(void)5 void f(void) 6 { 7 g(); 8 counter++; 9 } 10