It will give compilation error.
If you write it as
int a;
a=1,2,3
then it will work fine.
Why?
Comma operator has least precedence ( = has higher precedence than, operator) so it will be like
(a=1), 2, 3;
Output will be 1 in this case. But for the mentioned question it gives Compilation Error.