int a =5, b =10;
cout <<"Before swapping: a = "<< a <<", b = "<< b << endl;swapVars<int>(a, b);
cout <<"After swapping: a = "<< a <<", b = "<< b << endl;double c =1.23, d =4.56;
cout <<"Before swapping: c = "<< c <<", d = "<< d << endl;swapVars<double>(c, d);
cout <<"After swapping: c = "<< c <<", d = "<< d << endl;