Path: utzoo!attcan!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.lang.c Subject: Re: Question about int result of relational operator Message-ID: <429@sdrc.UUCP> Date: 2 Nov 88 23:08:34 GMT References: <787@gtx.com> Distribution: na Organization: Structural Dynamics Research Corp., Cincinnati Lines: 15 In article <787@gtx.com>, randy@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@sdrc.uucp 2000 Eastman Dr. BIX: ltl Milford, OH 45150 AT&T: (513) 576-2070 "Save the Quayles" - Mark Russell