operators | Sololearn: Learn to code for FREE!

+1

operators

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

c

10/5/2019 3:52:33 PM

Rishabh Chatterjee

3 Answers

New Answer

+6

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

+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.

0

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