|
November 15, 1999 The Comma Operator Tips: November 1999
Yehuda Shiran, Ph.D.
|
|
You can use the comma operator to force the evaluation of a set of expressions. Sometimes called a parameter delimiter because it is used in delimiting multiple arguments in a function call:
In the following example:
the comma operators force the evaluation of the expressions in the statement. Only the last expression is returned. In the above example,
People who read this tip also read these tips: Look for similar tips by subject: |