// File: f3.cpp
#include <iostream>
using namespace std;

int x = 300000;

void f()
{
   int y = x;          // Assigns the value of global x
   int x = 2;          // Defines a new local x
   cout << x << endl;  // Prints new x
   cout << y << endl;  // Prints y which has the value of global x
}
