Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!ucla-cs!maui.cs.ucla.edu!jon From: jon@maui.cs.ucla.edu (Jonathan Gingerich) Newsgroups: comp.lang.c Subject: Re: cond. op. on ='s LHS Message-ID: <1991Feb15.182621.19633@cs.ucla.edu> Date: 15 Feb 91 18:26:21 GMT References: <4155@cernvax.cern.ch> Sender: news@cs.ucla.edu (Shemp.CS.UCLA.EDU News Account) Organization: UCLA Computer Science Department Lines: 17 Nntp-Posting-Host: maui.cs.ucla.edu 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; Yeah, you should use meaningful names even for shortlived variables. It seems very unlikely that a, b, c, and d would convey anything in context. Jon. P.S. Why not (a==b?c=1:(d=1)) ?