#include <iostream>
using namespace std;
int main() {
int x = 0;
cout << ++x << " " << x++ << endl;
return 0;
}
the output is 2
and 0
why is that !?
#include <iostream>
using namespace std;
int main() {
int x = 0;
cout << ++x << " " << x++ << endl;
return 0;
}
the output is 2
and 0
why is that !?