#include using namespace std; void swap(int& a, int& b) { int temp = a; a = b; b = temp; } int main() { int x = 1; int y = 5; cout << x << "\t" << y << endl; swap(x,y); cout << x << "\t" << y << endl; }