[Solved] What does it mean to assign (2, 6, 8) to an integer in C? [closed]
The code int x = (2, 6, 8); uses the (very uncommon) comma operator. In C, an expression of the form expr1, expr2, expr3, …, exprN is interpreted to mean “evaluate expr1 and discard its value, then evaluate expr2 and discard its value, …, and finally evaluate exprN and use the value it evaluates to.” … Read more