J
JAY
There is an example which confuses me,
int main()
{
int a,b,c,d;
a=3;
b=5;
c=a,b;
d=(a,b);
printf("c=%d",c);
printf("d=%d",d);
return 0;
}
I think the reuslt should be 5,5 but it is 3,5
how the comma expression works?
int main()
{
int a,b,c,d;
a=3;
b=5;
c=a,b;
d=(a,b);
printf("c=%d",c);
printf("d=%d",d);
return 0;
}
I think the reuslt should be 5,5 but it is 3,5
how the comma expression works?