6.5 — The comma operator
The allows you to evaluate multiple expressions wherever a single expression is allowed. The comma operator evaluates the left operand, then the right operand, and then returns the result of the right operand. For example: #include <iostream> int main() { int x{ 1 }; int y{ 2 }; std::cout << …