CentralNotice From Wikipedia, the free encyclopedia Jump to: navigation , search In the C and C++ programming languages, the comma operator (represented by the token , ) is a binary operator that evaluates its first operand and discards the result, and then evaluates the second operand and returns this value (and type). The use of the comma token as an operator is distinct from its use in function calls and definitions, variable declarations, enum declarations, and similar constructs, where it acts as a separator . 1 Syntax 2 Examples 3 Uses 3.1 For loops 3.2 Macros 3.3 Condition 3.4 Complex return 3.5 Avoid a block 4 Other languages 5 See also 6 References 7 External links Syntax [ edit ] The comma operator separates expressions (which have value) in a way analogous to how the semicolon terminates statements, and sequences of expressions are en...