Multiple choice technology programming languages

Which of the following is true with respect to comma?

  1. It has got last priority with Left to right grouping order.

  2. It has got last priority with right to left grouping order.

  3. It has got second last priority with right to left grouping order.

  4. None of the above.

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

The comma operator in C/C++/Java has the lowest precedence of all operators and evaluates left-to-right. The answer is A because the comma operator is at the bottom of the precedence hierarchy - it executes after all other operations. Left-to-right grouping means expressions are evaluated in order (a, b, c evaluates a, then b, then c, returning c's value). This is useful in for-loops and compact expressions.