New to C programming. Why the output of this code below is not 0 20 0
but instead it is 1 20 0
?
printf ( "\n%d %d %d", x != 1, x = 20, x < 30 ) ;
My understanding is that the code is assigning x to a value other than 1 (1=true therefore != true is 0)? Can someone walk me through the logic?