in reply to Ternary operator (there's no Trinary operator )

I think someone should look what the operator is called in the English original of K&R, and we should probably stick to that term. (If it's always referred to as something like, say, "conditional operator" then we're out of luck.)

  • Comment on Re: Ternary operator (there's no Trinary operator )

Replies are listed 'Best First'.
Re^2: Ternary operator (there's no Trinary operator )
by lemnisca (Sexton) on Jul 19, 2006 at 09:33 UTC
    My copy of K&R (second edition) says 'ternary operator':

    "The conditional expression, written with the ternary operator ``?:'', provides an alternate way to write this and similar constructions."
    from section 2.11