0

operators

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

c

10/5/2019 3:52:33 PM

Rishabh Chatterjee

2 Answers

New Answer

+4

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.