Comma Operator

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.

Read more about Comma OperatorSyntax, Examples, Uses, Other Languages

Other articles related to "comma operator":

Comma Operator - Other Languages
... In the OCaml and Ruby programming languages, the semicolon ("") is used for this purpose ... JavaScript utilizes the comma operator in the same way C/C++ does ...

Famous quotes containing the word comma:

    I didn’t have to think up so much as a comma or a semicolon; it was all given, straight from the celestial recording room. Weary, I would beg for a break, an intermission, time enough, let’s say, to go to the toilet or take a breath of fresh air on the balcony. Nothing doing!
    Henry Miller (1891–1980)