void updatelocal() { int x=10; printf(" Enter local x = %5d\n",x); x++; printf(" Exit local x = %5d\n",x); } void updatestatic() { static int x=100; printf(" Enter static x = %5d\n",x); x++; printf(" Exit static x = %5d\n",x); } void updateglobal() { printf(" Enter global x = %5d\n",x); x++; printf(" Exit global x = %5d\n",x); }