Why this matters
The comma operator evaluates each of its operands (from left to right) and returns the value of the last operand. This behavior is often confusing and rarely intended, reducing code readability and increasing the potential for bugs. Clearer alternatives using separate statements are preferred.