cond. op. on ='s LHS

John D. Mitchell johnm at cory.Berkeley.EDU
Thu Feb 14 05:08:38 AEST 1991


In article <4155 at cernvax.cern.ch> burow at 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;

1) Readability, readability, READABILITY!

2) Why?  It's not any faster.

Ugh,
	John D. Mitchell
	johnm at cory.Berkeley.EDU

P.S.	No wonder people complain about the denseness of C code!



More information about the Comp.lang.c mailing list