int main()
{
int x=35;
printf("%d\n%d\n%d\n",x==35,x=50,x>35);
return 0;
}
In the above main function the output comes out to be 0 50 0. Why is it so that the comparison operator is producing an output of 0 even when the value of x
is equal to 35.
I am also bit confused in the output produced by x>35
because when this is compiled the value of x
has been updated to 50 than why is it so that it produces an output of 0 instead of 1.