Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!srhqla!demott!kdq From: kdq@demott.com (Kevin D. Quitt) Newsgroups: comp.lang.c Subject: Re: cond. op. on ='s LHS Message-ID: <1991Feb13.222200.12617@demott.com> Date: 13 Feb 91 22:22:00 GMT References: <4155@cernvax.cern.ch> Organization: DeMott Electronics Co., Van Nuys CA Lines: 20 In article <4155@cernvax.cern.ch> burow@cernvax.cern.ch (burkhard burow) writes: >I'm wondering if anyone has any comments on using: > > *(a==b?&c:&d) = 1; > >instead of: > > if (a==b) c=1; > else d=1; It's cryptic and ugly, therefore harder to maintain. It also produces identical code (gcc, MSC 6.0). It *does* save several bytes of storage. -- _ Kevin D. Quitt demott!kdq kdq@demott.com DeMott Electronics Co. 14707 Keswick St. Van Nuys, CA 91405-1266 VOICE (818) 988-4975 FAX (818) 997-1190 MODEM (818) 997-4496 PEP last