#include void f() { static int i = 0; ++i; printf("%d ", i); } int main() { for (int i = 0; i < 3; ++i) { f(); } return 0; }