int main() { int x = 2, y = 6, z = 6; x = y == z; printf("%d", x); }
let`s start like this:
x = (6==6)
It asks is 6 equivalent to 6?: true
x = true, but since x is an int, x= 1The new value of x is 1.
The following is printed:
1