A Place for Latest Exam wise Questions, Videos, Previous Year Papers, Study Stuff for MCA Examinations - NIMCET
Previous Year Question (PYQs)
3
Which operator out of these has left to right associativity?
Solution
Operator associativity in C:
- Most unary operators (!, ++, --, sizeof, etc.) → **Right to Left**
- Conditional (`?:`) → **Right to Left**
- Comma operator (`,`) → **Left to Right**
Hence, only the **comma operator** has **left-to-right** associativity.
Online Test Series, Information About Examination, Syllabus, Notification and More.