I've the following two lines , and could not find a good explanation
I did read about the dual nature of comma as operator and separator , and priority precedence of parentheses , and comma as a sequence point .
int a =(3,4) // here a is 4 because comma here is an operator first a=3 , then a = 4
int a={3,4} // here is the problem , should not a=3 and then a =4 too because comma is a sequence point or it's undefined behavior or what ?
I expected
a=4
a=4 ,
but the actual output is
a=4 , a=3