Comma Operator
the comma operator combines several expressions into a single statement and returns the value of the rightmost expression:
a = 0, b = 3, a += b, b = 0;
sets
a
to
3
,
b
to
0
and returns
0
it is rarely used outside the
for
statement
the comma operator has the lowest precedence of any operator
Previous
,
Next
,
Index