~cpp #include<iostream> using namespace std; void swap(int *a, int *b); int main() { int a=1, b=18 ; cout << a << "\t " << b << endl; swap(&a, &b); cout<<a << "\t" << b<<endl; return 0; } void swap(int *a,int *b) { int c; c=*a; *a=*b; *b=c; }