Question about int result of relational operator
Larry Jones
scjones at sdrc.UUCP
Thu Nov 3 09:08:34 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"?
The draft standard says "Each of the operators ... shall yield 1
if the specified relation is true and 0 if it is false." I
believe K&R made a similar statement.
----
Larry Jones UUCP: uunet!sdrc!scjones
SDRC scjones at sdrc.uucp
2000 Eastman Dr. BIX: ltl
Milford, OH 45150 AT&T: (513) 576-2070
"Save the Quayles" - Mark Russell
More information about the Comp.lang.c
mailing list