8 May, 2025
0 Comments
2 categories
9:20 am
Precedence of Operators in C/arduino :-
Note- Theory के साथ MCQs खुद से attempt करें।
| No. | Operator (Prio- High to Low) | Description | Associativity |
| 1. | () [] -> . | Parentheses, array access, structure members | Left to Right |
| 2. | ++ -- ! ~ sizeof + - & * | Unary operators | Right to Left |
| 3. | * / % | Multiplication, division, modulus | Left to Right |
| 4. | + - | Addition, subtraction | Left to Right |
| 5. | << >> | Bitwise shift operators | Left to Right |
| 6. | < <= > >= | Relational operators | Left to Right |
| 7. | == != | Equality operators | Left to Right |
| 8. | & | Bitwise AND | Left to Right |
| 9. | ^ | Bitwise XOR | Left to Right |
| 10. | | | Bitwise OR | Left to Right |
| 11. | && | Logical AND | Left to Right |
| 12. | || | Logical OR | Left to Right |
| 13. | ?: | Ternary conditional operator | Right to Left |
| 14. | = += -= *= /= %= &= ^= ` | Assignment operators | Right to Left |
| 15. | , | Comma operator | Left to Right |
