Precedence and Associativity of Operators in C - C Reference

C examples for Reference:Language Reference

Description

Precedence and Associativity of Operators in C

Operators                                        Associativity
( ) [ ] ->.                                  left to right
! ~ ++ -- + - * & (type) sizeof                  right to left
*/%                                          left to right
+??-                                             left to right
<< >>                                           left to right
< <=> >=                                     left to right
==  !=                                           left to right
&                                                left to right
^                                                left to right
|                                                left to right
&&                                               left to right
||                                               left to right
?:                                               right to left
= += -= *= /= %= &= ^= |= <<= >>=                right to left
,                                                left to right

Related Tutorials