Multiple choice technology programming languages

Which one of the following C operators is right associative?

  1. =

  2. ,

  3. []

  4. ->

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In C, the assignment operator = is right-associative, meaning expressions like a = b = c are grouped and evaluated from right to left as a = (b = c). The other listed operators (,, [], and ->) are left-associative.