#include void updatelocal(); void updatestatic(); void updateglobal(); int x=1; 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); } int main() { int x=1000; printf(" main x = %5d\n",x); { int x=10000; printf(" main local block scope x = %5d\n",x); } printf(" main x = %5d\n",x); updatelocal(); updatelocal(); updatestatic(); updatestatic(); updateglobal(); updateglobal(); return(0); }