Tuesday, September 7, 2010

Comma Operator

After the following statement:
    int i = (10, 5);
The value of i is 5.

The comma operator is being used above, so the last value, 5, is the value of the expression (10, 5).

Reference: The C++ Standard Library by Nicolai M. Josuttis. Addison-Wesley, 1999, p. 20.

No comments:

Post a Comment