Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!bbn!rochester!pt.cs.cmu.edu!cadre!pitt!cisunx!jcbst3 From: jcbst3@cisunx.UUCP (James C. Benz) Newsgroups: comp.lang.c Subject: Re: value of TRUE??? Keywords: TRUE, if(), another nonzero value Message-ID: <16575@cisunx.UUCP> Date: 9 Mar 89 21:01:28 GMT References: <987@infmx.UUCP> Reply-To: jcbst3@unix.cis.pittsburgh.edu (James C. Benz) Distribution: usa Organization: Univ. of Pittsburgh, Comp & Info Sys Lines: 12 In article <987@infmx.UUCP> kevinf@infmx.UUCP (Kevin Franden) writes: >What does if (a=3) evaluate to? if (a=3) will evaluate to true, since the value of (a=3) is 3, a non-zero value Now, if you had said, if (a == 3), it is highly dependent on the value of 3. The values of TRUE and FALSE are 1 and 0, and are defined as constants in I think, the stdio library. -- Jim Benz jcbst3@unix.cis.pittsburgh.edu If a modem University of Pittsburgh answers, UCIR (412) 648-5930 hang up!