| 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 |
A collection of embedded system and firmware/software interview questions. This blog will help you prepare for your interview efficiently.
2011年1月8日 星期六
C Language Operator Priority
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言