Back
operator | association | description |
---|---|---|
function | not assiciated | create anonymous function |
++(postfix) --(postfix) (function call) | left to right | increment, decrement and calling function, respectively After evaluting value, increment/decrement will execute. |
(unary)- (unary)+ ~ ! ++(prefix) --(prefix) | left to right | negate the sign, preserve the sign, bitwise not, logical not, increment and decrement, respectively Before evaluting value, increment/decrement will execute. |
* / % | left to right | multipication, division and remainder, respectively Rule of remainder is the same of C, Java or JavaScript. |
+ - | left to right | addition, subtraction |
>> << | left to right | shift to right or left |
< > <= >= | left to right | comparing the number and returns 1 if true, otherwise 0. |
== != | left to right | comparing the number and returns 1 if true, otherwise 0. |
& | left to right | bitwise and |
^ | left to right | bitwise xor |
| | left to right | bitwise or |
&& | left to right | logical and |
|| | left to right | logical or |
= += -= *= /= %= <<= >>= &= ^= |= | right to left | assignment |