Ce se afișează în urma executării programului de mai jos?
#include <iostream>
using namespace std;
void sch(int &a, int b)
{
int t = a;
a = b;
b = t;
}
int main()
{
int x = 3, y = 1, z = 2;
if (x > y) sch(x, y);
if (y > z) sch(y, z);
if (x > y) sch(x, y);
cout << x << ' ' << y << ' ' << z;
return 0;
}