Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!usc!apple!voder!pyramid!prls!mips!sdd.hp.com!samsung!munnari.oz.au!bruce!alanf From: alanf@bruce.cs.monash.OZ.AE (Alan Grant Finlay) Newsgroups: comp.lang.c Subject: Re: FALSE and TRUE, (FALSE = -1 ?) Message-ID: <3032@bruce.cs.monash.OZ.AE> Date: 9 Sep 90 05:02:41 GMT Organization: Monash Uni. Computer Science, Australia Lines: 7 I prefer to use -1 to represent false in C. This uses redundancy to decrease the chance of an error when more than one bit is used. Since you can't have a one bit two's complement integer I should probably use ~0. The ! operator in C is designed to allow either 1 or -1 as representing false. It looks as though I am a minority voice but this certainly means performing a