C Programming - Expressions - Discussion

Discussion Forum : Expressions - True / False Questions (Q.No. 4)
4.
Associativity of an operator is either Left to Right or Right to Left.
True
False
Answer: Option
Explanation:

Yes, the associativity of an operator is either Left to Right or Right to Left.

Discussion:
5 comments Page 1 of 1.

Lalitha said:   5 years ago
Which operators have left to right associativity? Please explain.

Divya said:   8 years ago
While we are taking in an expression like a*b+c/d it will follow left to right.

As well as if we are taking relational operators in printf that time it will take as right to left like printf("%d %d %d",k>=0,k=0,k<=0);

Mangesh said:   9 years ago
+, -, /, * are left to right.

^, =, > < are right to left.

Thomas said:   10 years ago
Sorry I don't get this can you explain it please?

Pankaj kumar said:   10 years ago
The associativity of an operator Left to Right or Right to Left.

Post your comments here:

Your comments will be displayed after verification.