e1?e2:e3 so, is it useful or what?

J. Wong wong at rtech.UUCP
Tue Sep 9 04:51:40 AEST 1986


In article <4064 at reed.UUCP> trost at reed.UUCP (Bill Trost) writes:
>
>			...  I also suspect (but am uncertain)
>that the use of ?: is more effecient in terms of code size and speed.

No, in most cases ?: is less efficient.  It does result is less source
code, however (and I feel results in more readable code, as long as you
don't nest them.)
-- 
				J. Wong		ucbvax!mtxinu!rtech!wong

****************************************************************
You start a conversation, you can't even finish it.
You're talking alot, but you're not saying anything.
When I have nothing to say, my lips are sealed.
Say something once, why say it again.		- David Byrne



More information about the Comp.lang.c mailing list