On Tue, 3 Apr 2001, Tony Robbins wrote:
> No. It is a ternary operator, but not the same as what you're trying
> to say. It can be fudged a little, but the essential difference is
> that the ? operator is used to report a value, while an if statement
> can perform an action.
Don't be silly. There's no artificial separation between function calls
("perform[ing] an action") and other expressions ("report[ing] a value")
in C. The only practical difference is that ?: is an expression (meaning
that it has a value), while an if statement is not (meaning it has no
value).
-dak
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/05/01 PST