1static int foo(void)
2{
3  static int counter;
4  return counter++;
5}
6