#include <iostream>
using namespace std;
 
void f();  // function prototype
 
int main()
{
   f();  // call function f
   f();  // call function f
   system("pause");
   return 0;
 
}
void f()  // function f
{
  int localX=1;     // declare and set local varaible
 
  cout << "In Function f " << endl;
  cout << "localX is " << localX << endl;
  localX=2;
  return;
}