#include<stdio.h>void inc();main(){inc();inc();inc();}void inc(){static int i=10;printf("%d\n",i);i++;}
Standard input is empty
10 11 12
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!