#include using namespace std; void swap(int &i, int &j) { int t; t=i; i=j; j=t; } int main() { int i=1,j=2; cout << " i= " << i << " j= " << j << endl; swap(i,j); cout << " i= " << i << " j= " << j << endl; return(0); }