The second line is using the comma operator. An expression like
a, b
evaluates both a and b and returns b.
In this case, the second line is parsed like:
int b = ((1, 2), 3);
so (1, 2) is evaluated (to 2) then thrown away, and the end result is simply 3.