// File: local2.C // // Where are local variables stored? #include void func1 () { int a, b ; cout << "&a = " << &a << ", &b = " << &b << "\n" ; } void func2 () { int c, d ; cout << "&c = " << &c << ", &d = " << &d << "\n" ; } void func3() { int e, f ; cout << "&e = " << &e << ", &f = " << &f << "\n" ; func2() ; func1() ; } void func4() { int g, h ; cout << "&g = " << &g << ", &h = " << &h << "\n" ; func3() ; } main() { cout << "\nCalling func1()\n" ; func1() ; cout << "\nCalling func2()\n" ; func2() ; cout << "\nCalling func3()\n" ; func3() ; cout << "\nCalling func4()\n" ; func4() ; }