#include < iostream.h >
using namespace std;
void swap(int &x, int &y) {
int temp = x;
x = y;
y = temp;
}
int main() {
int a = 5, b = 10;
swap(a, b);
swap(a, b);
cout << a << " " << b;
return 0;
}
What will be the output of above code?
1
5, 10
2
10, 5
3
5, 5
4
10, 10