/* 2. ´ÙÀ½ ÇÁ·Î±×·¥ÀÇ Ãâ·ÂÀ» ½á¶ó. */ #include int data[5] = { 1, 2, 3, 4, 5 }; int x = 0; void foo(int x,int y) { x++; if (x = 1) { static int x = 0; x++; if (y == 1) printf("%d\n",x); } else { printf("%d\n",x); } } void boo() { int x = data[0]; int i = data[1]; for(i = 0; i < 5; i++) { int x = data[2]; foo(x,0); x++; } x++; } void hoo(int a) { x = data[3]; foo(x,1); } main() { int x = data[4]; foo(x,0); boo(); hoo(x); }