Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 (Denver Mods 4/2/84) 6/24/83; site drutx.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ihnp4!drutx!jas From: jas@drutx.UUCP (ShanklandJA) Newsgroups: net.lang.c Subject: Re: C programming syle poll Message-ID: <221@drutx.UUCP> Date: Wed, 25-Apr-84 15:19:25 EST Article-I.D.: drutx.221 Posted: Wed Apr 25 15:19:25 1984 Date-Received: Fri, 27-Apr-84 00:16:20 EST References: <137@iwlc6.UUCP> <2565@ncsu.UUCP> Organization: AT&T Information Systems Laboratories, Denver Lines: 10 Relops and equality ops are guaranteed to return 1 (not just any non-zero value) if the relation is true and 0 if it is false. Thus, if variable x has the value 5, then the expression (x == 5) has type integer and value 1 (cf. K&R, pp. 189-190). Jim Shankland ..!ihnp4!druxy!jas