Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!uflorida!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Question about int result of relational operator Message-ID: <8821@smoke.BRL.MIL> Date: 2 Nov 88 17:45:57 GMT References: <787@gtx.com> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Distribution: na Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <787@gtx.com> randy@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.