Comma operators in c

the comma operator is used for multiple arguments and expressions,these are separated by comma(,) and evaluated from left to right

example:

int a=6,b=65,x=2;

the precendence will be (lowest )left to right from opreator precendence table

#include
int main()
{
int a, b, c, sum;
sum = (a=56, b=44, c=66, a+b+c);
printf("Sum = %d\n", sum);
}

here the operator precedence will be from left to right so,the last expression is a+b+C

output:

165