Skip to content

Instantly share code, notes, and snippets.

@amrkarthik
Last active March 31, 2018 10:25
Show Gist options
  • Save amrkarthik/a97f1d6351bc500e10a81b2276c42200 to your computer and use it in GitHub Desktop.
Save amrkarthik/a97f1d6351bc500e10a81b2276c42200 to your computer and use it in GitHub Desktop.
PostFix operator precedence list
S.No Operator Associativity
1 ( ) Left to Right
2 [ ] Left to Right
3 . Left to Right
4 -> Left to Right
5 ++ -- Left to Right
6 ++ -- Right to Left
7 + - Right to Left
8 ! ~ Right to Left
9 (type) Right to Left
10 * Right to Left
11 & Right to Left
12 sizeof Right to Left
13 *  /  % Left to Right
14 +  - Left to Right
15 <<  >> Left to Right
16 <  <= Left to Right
17 >  >= Left to Right
18 ==  != Left to Right
19 & Left to Right
20 ^ Left to Right
21 | Left to Right
22 && Left to Right
23 | | Left to Right
24 ? : Right to Left
25 = Right to Left
26 +=  -= Right to Left
27 *=  /= Right to Left
28 %=  &= Right to Left
29 ^=  |= Right to Left
30 <<=  >>= Right to Left
31 , Left to Right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment