#include using namespace std; void mySwap(int, int); void mySwapRef(int &, int &); void main(){ int x = 13, y = 666; int &replicant = x; replicant = 64; cout << " addr " << &x << " " << &replicant << endl; mySwap(x, y); cout << x << " " << y << endl; int p=1, q=2; mySwapRef(p, q); cout << p << " " << q << endl; } void mySwap(int a, int b){ int t = a; a = b; b = t; cout << a << " " << b << endl; } void mySwapRef(int& a, int &b){ int t = a; a = b; b = t; cout << a << " " << b << endl; }