The ternary (conditional) operator in C
Posted
by Bongali Babu
on Stack Overflow
See other posts from Stack Overflow
or by Bongali Babu
Published on 2009-04-17T03:09:40Z
Indexed on
2010/04/07
2:23 UTC
Read the original article
Hit count: 471
What is the need for the conditional operator? Functionally it is redundant, since it implements an if-else construct. If the conditional operator is more efficient than the equivalent if-else assignment, why can't if-else be interpreted more efficiently by the compiler?
© Stack Overflow or respective owner