Here\'s my simple code:
int main() { int x = 5; cout << (x++) << endl; return 0; }
the code above prints 5
5
The expression (x++), with or without parentheses, evaluates to the previous value of x, and has the side-effect of increasing x.
(x++)
x
If you want to see the effect of the increase then use the obscure
cout << (x++, x) << endl;