###### priority of operator in c
# priority of operator in c:
---
-1 | // |
0 | /* */ |
1 | (a) [a] a::b a++ a-> a. | ns::sth.p->a[(b++)]
| |
2 (<<) | (int)a sizeof(a) ~a &a !a *a +a --a | -- +! *& ~ sizeof (int)a
| |
3 | a->*b a.* | a ->*b .*c
| |
4 | a* / % | a*b/c%d
5 | a+ - | a+b-c
6 | a<< >> | a<>c
| |
7 | a< > <= >= | afalse <= 2
8 | a!= == | a!=b == true
| |
9 | a& | a & b
10 | a^ | a ^ b
11 | a| | a | b
| |
12 | a&& | a && b
13 | a|| | a || b
| |
14 (<<) | c?b:a | c?b:a
15 (<<) | b<<=a b=a //~= *= += >>= &= &&= | b= c<<=a
16 | a, a; | a,b;
---