Which of the following statement(s) is/are true about Associativity and Precedence of operators in C.
- Associativity is only used when there are two or more operators of the same precedence.
- All operators with the same precedence have the same associativity.
- Precedence and associativity of postfix ++ and prefix ++ are same.
- Comma operator has the highest precedence among all operators.
(A) Only 1
(B) Only 3
(C) Both 1 and 2
(D) Both 2 and 3
Explanation: Please refer: https://www.geeksforgeeks.org/c-operator-precedence-associativity/
Quiz of this Question