Posts by Alexandre Six • 1 point
1 post
-
0
votes3
answers527
viewsA: Precedence of operators
The expression is left to right. So: int x = 2; long y = 1 + x * 4 - ++x; 1 + 2 * 4 - ++x; 1 + 8 - ++2; 1 + 8 - 3; 9 - 3; 6
1 post
0
votes3
answers527
viewsThe expression is left to right. So: int x = 2; long y = 1 + x * 4 - ++x; 1 + 2 * 4 - ++x; 1 + 8 - ++2; 1 + 8 - 3; 9 - 3; 6