It is "equals" operator.
In the above example, x
is assigned the result of equality test (y == z
) expression. So, if y
is equal to z
, x
will be set to 1
(true), otherwise 0
(false). Because C (pre-C99) does not have a boolean type, the expression evaluates to an integer.