Swift - Operators and Expressions
You want to assign a string describing a number's sign using the ternary operator. Which code correctly assigns "Positive", "Negative", or "Zero" to the variable sign?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions