1.

Why is it called a ternary expression what does the word ternary indicate?

Answer»

It is CALLED TERNARY expression because of the ternary operator (?:). Word Ternary INDICATESTHREE” means it takes 3 arguments and is one-lined shorthand for an if-then STATEMENT.



Discussion

No Comment Found