When I run this program I get strange output 1132. Can somebody explan me why is 1132?
//main.cpp
#include <iostream>
using namespace std;
int f1(int &a){return a++;}
int f2(int &a){return ++a;}
int main(){
int x, y;
int *px, *py;
x = 1;
y = 2;
px = &x;
py = &y;
cout << f1(*px) << *px << f2(*py) << *py << "\n";
return 0;
}