Previous: , Up: Execution Control Expressions   [Contents][Index]


8.5 Comma Operator

The comma operator stands for sequential execution of expressions. The value of the comma expression comes from the last expression in the sequence; the previous expressions are computed only for their side effects. It looks like this:

exp1, exp2 

You can bundle any number of expressions together this way, by putting commas between them.