Question about int result of relational operator

Guy Harris guy at auspex.UUCP
Wed Nov 2 19:26:16 AEST 1988


>I've seen conflicting information about the int result of a relational
>operator in which the condition is satisfied.  Does it evaluate to
>exactly one, or just "non-zero" ?

It evaluates to exactly one in all C implementations.  (Implementations
where it does not may purport to be C implementations, but they aren't.)



More information about the Comp.lang.c mailing list