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
int i = (10, 5);The value of i is 5.
exception
bad_alloc
bad_cast
bad_exception
bad_typeid
io_base::failure
logic_error
domain_error
invalid_argument
length_error
out_of_range
runtime_error
overflow_error
range_error
underflow_error
Reference: The C++ Standard Library