cond. op. on ='s LHS

burkhard burow burow at cernvax.cern.ch
Thu Feb 14 03:48:08 AEST 1991


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;

thanks, burkhard  burow%13313.hepnet at csa3.lbl.gov



More information about the Comp.lang.c mailing list