// swap.cpp #include using namespace std; void swap(int *b, int *c) { int temp = *b; *b = *c; *c = temp; } int main() { int x = 3, y = 5; swap(&x, &y); cout << x << " " << y << endl; return 0; }