#include <iostream>
using namespace std;
void mySwap(int &a, int &b) {
int sw = a;
a = b;
b = sw;
}
int main() {
int a = 5;
int b = 10;
mySwap(a, b);
cout << a << " " << b << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: