With reference to Comma-Separated return arguments in C function [duplicate] ,
x=x+2,x+1;
will be evaluated as
x=x+2; 
However, in case of the following code
#include<stdlib.h>
#include<stdio.h>
int fun(int x)
{
    return (x=x+2,x+1); //[A]
}
int main()
{
   int x=5;
   x=fun(x);
   printf("%d",x); // Output is 8
}
Shouldn't line [A],be evaluated as
x=x+2;
giving x = 7
 
     
     
     
     
     
     
     
    