+ 1
Programmer's version of 2-2*2
int x = 1; x += x++ + ++x; cout << x;
1 ответ
0
The prefix increment operator increases x before the expression so x = 2 and x = x + (x + x). then the postfix increment operator increases x by 1. x = 7
int x = 1; x += x++ + ++x; cout << x;