+ 1


how do you follow the operation eg x+=y--

5th Oct 2019, 3:52 PM
Rishabh Chatterjee
Rishabh Chatterjee - avatar
3 Answers
+ 7
that is called operator precedence. You can look up a table in any language ;) Here is the one for C https://en.cppreference.com/w/c/language/operator_precedence
5th Oct 2019, 3:53 PM
「HAPPY TO HELP」 - avatar
+ 2
Rishabh Chatterjee For the example you gave, x will be incremented by the current value of y, and y will be decreased by 1. In general, you follow order of operations and then go from left to right.
5th Oct 2019, 3:56 PM
Ace - avatar
Int num1=8. Int num2=42 Int num1__num2;
29th Oct 2020, 7:50 AM
Devesh Jain
Devesh Jain - avatar