I checked it, and cout<<(a,b) simply takes the second value, same with functions.
if we are passing (a,b) simply b will be taken as the argument, not a.
An expression that looks like this
(a, b)
is a comma expression, its value is its result is its rightmost operand, i.e.
(a, b, ..., z)
would produce the value of z
.