Analysis of information sources in references of the Wikipedia article "Comma operator" in English language version.
Two expressions separated by a comma are evaluated left to right. The left operand is always evaluated, and all side effects are completed before the right operand is evaluated.
You can use the comma operator when you want to include multiple expressions in a location that requires a single expression.
Two expressions separated by a comma are evaluated left to right. The left operand is always evaluated, and all side effects are completed before the right operand is evaluated.
You can use the comma operator when you want to include multiple expressions in a location that requires a single expression.