Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: value of TRUE??? Keywords: TRUE, if(), another nonzero value Message-ID: <11978@haddock.ima.isc.com> Date: 7 Mar 89 22:14:44 GMT References: <987@infmx.UUCP> <16248@mimsy.UUCP> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Distribution: usa Organization: Interactive Systems, Boston Lines: 12 In article <16248@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >[The operators] !, <, <=, >, >=, ==, !=, &&, and || ... return either >(representing `true') or (representing `false'). Thus, in [this] >respect, the value of `true' is . No other value is produced for true >conditional expressions. This is true for the operators, as you say. It should probably be mentioned that it is not necessarily true for functions, even those standard library functions that are conceptually boolean: for example, isdigit('6') returns 4 on this system. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint