int iglobal; static int sglobal =8; void afunc () { static int fooglobal=0; fooglobal++; iglobal+=sglobal+fooglobal; } void bfunc () { afunc(); } void cfunc () { bfunc(); } int main (int argc, char**argv) { cfunc(); sglobal = argc; return 0; }