Question about int result of relational operator
Gordon Cross
crossgl at ingr.UUCP
Thu Nov 3 00:22:01 AEST 1988
In article <787 at gtx.com>, randy at gtx.com (Randy D. Miller) writes:
> 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" ?
According to the proposed ANSI standard, the result of the operations
<, >, <=, >=, ==, !=, &&, and || has type "int" and a value of precisely
zero or one. Hope that helps!
Gordon Cross
Intergraph Corp. Huntsville, AL
More information about the Comp.lang.c
mailing list