Skip to content
Related Articles

Related Articles

Algorithms Quiz | SP2 Contest 1 | Question 8
  • Last Updated : 28 Aug, 2018

Which of the following statement(s) is/are true about Associativity and Precedence of operators in C.

  1. Associativity is only used when there are two or more operators of the same precedence.
  2. All operators with the same precedence have the same associativity.
  3. Precedence and associativity of postfix ++ and prefix ++ are same.
  4. 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


Answer: (C)

Explanation: Please refer: https://www.geeksforgeeks.org/c-operator-precedence-associativity/

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :