int x = 15 ;
printf ("\n%d %d %d", x != 15, x = 20, x < 30 );
I was studying C and solving a pseudocode. I tried to solve it and my answer was 0 20 1
,
but when I tried to compile and check the answer was 1 20 1
.
Can someone explain me why this is happening?
When I tried to interchange the condition to printf ("\n%d %d %d", x = 20,x != 15, x < 30 );
and here I got answer to be 20 0 1
Why is this happening?