C Programming - Expressions - Discussion

Discussion Forum : Expressions - Yes / No Questions (Q.No. 4)
4.
Every operator has an Associativity
Yes
No
Answer: Option
Explanation:

Yes, Each and every operator has an associativity.

The associativity (or fixity) of an operator is a property that determines how operators of the same precedence are grouped in the absence of parentheses. Operators may be left-associative, right-associative or non-associative.

Discussion:
6 comments Page 1 of 1.

AJINKYA S. GADGE said:   7 years ago
There is nothing like non-associativity, because in;

(Expressions - True / False Questions) (question 4-Associativity of an operator is either Left to Right or Right to Left) the answer given is TRUE.

But,
if we look operators like &&,||,^,| they don't have any associativity.

Raghu said:   8 years ago
Thing is last priority (precedence) is given to comma operator, since it has no other operator of same precedence what is the question of associativity? please help me out if I'm wrong.

Janani said:   8 years ago
Why do we go for left-to-right and right-to-left associativity?

Sachin shet said:   1 decade ago
Associative is order of the operator, which operator should takes place first.

Prathibha said:   1 decade ago
I don't no what is associativity and non-associativity plese explain.

MAHESH said:   1 decade ago
What is non-associative?

Post your comments here:

Your comments will be displayed after verification.