Skip to content
Related Articles
Open in App
Not now

Related Articles

Algorithms Quiz | SP2 Contest 1 | Question 8

Improve Article
Save Article
Like Article
  • Last Updated : 28 Aug, 2018
Improve Article
Save Article
Like Article

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
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!