operators | Sololearn: Learn to code for FREE!



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


10/5/2019 3:52:33 PM

Rishabh Chatterjee

3 Answers

New Answer


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


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.


Int num1=8. Int num2=42 Int num1__num2;