Did anyone use Ternary operators in their code this year? Personally, I find them a little bit...odd. I figure using an if-then statement that says:
if(y > 5)
x = 1;
is easier to read and understand, than:
x = ((y > 5) ? 1 : 0);
But, that is just one man's opinion. What do you all think?
For some more info on Ternary Operators, Binary Operators, and Unary Operators, see
http://cplus.about.com/library/gloss...ryoperator.htm
(This is where I got the example)