#include <iostream>
using namespace std;


void swapp(int& var1,int& var2){
    int buffer = var2;
    var2 = var1;
    var1 = buffer;
    return;
}


void doesNotChange(int x){
    x=5;
    x*=10;
    return;

}



int main(int argc,char *argv[])
{

    // We use the function swapp that changes the values
    int a = 5;
    int b = 10;
    cout << "Value of a = "<< a ;
    cout << " and b = " << b << endl;

    swapp(a,b);

    cout << "Value of a = "<< a ;
    cout << " and b = " << b << endl;

    // If we use another function, it does not affect the original value
    // since the int value has been copied.
    int c = 10;
    doesNotChange(c);
    // value is unchanged.
    cout << "Value remains the same: " << c << endl;
    

}
