Difference between (x++ + ++x) and (++x + x++)

前端 未结 0 639
借酒劲吻你
借酒劲吻你 2020-12-21 04:06
int y = 3, x = 3;
y += x++ + ++x;
cout << y << endl;
y = 3;
x = 3;
y += ++x + x++;
cout << y <<< endl;

Why the result of

相关标签:
回答
  • 消灭零回复
提交回复
热议问题