C Programming - Expressions - Discussion
Discussion Forum : Expressions - Yes / No Questions (Q.No. 2)
2.
Two different operators would always have different Associativity.
Answer: Option
Explanation:
No, Two different operators may have same associativity.
Example:
Arithmetic operators like ++, -- having Right-to-Left associativity.
Relational operators like >, >= also have Left-to-Right associativity.
Discussion:
7 comments Page 1 of 1.
Yogesh said:
1 decade ago
But how it is associate?
NIKHIL said:
1 decade ago
How it is any can you explain it?
Cerebro said:
9 years ago
What is associativity in this context?
Kartheek said:
9 years ago
Unary operators: right to left.
Binary operators: left to right.
Ternary operator: right to left.
So two different operators may have same or not (associativity).
Binary operators: left to right.
Ternary operator: right to left.
So two different operators may have same or not (associativity).
DEEPAK DAS said:
8 years ago
"Arithmetic operators like ++, -- having Right-to-Left associativity".
Above statement is wrong, only unary, ternary and assignment operator are Right-to-Left associativity.
Above statement is wrong, only unary, ternary and assignment operator are Right-to-Left associativity.
Vijay said:
7 years ago
What is an operator?
NKumar said:
7 years ago
Suppose if a operator is ++ and second is <= then the operator would be different associativity.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers