// Example on parameters by value and parameters by reference.
// Find the output of the following program.
#include <iostream>
using namespace std;
void f(int);
void g(int&);
int main()
{
	int x;
	x = 3;
	f(x);
	cout << x << endl;
	g(x);
	cout << x << endl;
	return 0;
}

void f(int x)
{
	x = x + 9;
	cout << x << endl;
}

void g(int& a)
{
	a++;
}

