// program that shows that local variables can be recreated by a // second function call that does not initialize its local variables. // This allows information to pass from one function to the other // without any parameter passing, returns, or global variables, just // by reusing space on the stack. #include using namespace std; void f1() { int x; double y; x = 15; y = 38.9; cout << x << endl; cout << y << endl; } void f2() { int a; double b; cout << a << endl; cout << b << endl; } int main() { f1(); f2(); return 0; }