Precedence


Precedence
(Priority)

 
Operator

Associativity
(Grouping)

15

( ) [ ] -> .

L to R

14

! ~ ++ -- + - * & (type) sizeof

R to L

13

* / %

L to R

12

+ -

L to R

11

<< >>

L to R

10

< <= >= >

L to R

9

== !=

L to R

8

&

L to R

7

^

L to R

6

|

L to R

5

&&

L to R

4

||

L to R

3

?:

R to L

2

= += -= *= /= %= ^= |= <<= >>=

R to L

1

,

L to R

Index