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.
int i = (10, 5);The value of i is 5.
No comments:
Post a Comment