Which operator has the lowest precedence of all operators in C?
Correct answer D. The comma operator
Explanation
The comma operator sits at the bottom of the C precedence table, below assignment, which is why a = 1, 2 assigns 1 to a and the whole expression has value 2. Assignment and ?: are just above it and associate right to left. Because of its low precedence, the comma operator often needs parentheses, as in x = (a, b), to have the effect you intend.
Answer checked How we write and check questions
Discussion