Question about int result of relational operator

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Nov 3 03:45:57 AEST 1988


In article <787 at gtx.com> randy at gtx.UUCP (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"?

Aaargh!  Looking in K&R (1st Ed.) in the index under "relational
expression, value of", I find that it's discussed on p.41.  Turning
to p.41 I find the answer.  And so could you.



More information about the Comp.lang.c mailing list