579 views

1 Answer

Best answer
4 votes
4 votes

Comma operator returns the value of the rightmost operand when multiple comma operators are used inside an expression.

 i = (1,2,3);

will return 3 to i.

Now consider the program

if(a++, b--, --b)

Here final value returned will value of b which will be zero condition become false so else part will executed .

Output:0,1

selected by

Related questions