- 1
C++
PLEASE EXPLAIN TO ME HOW THE CONDITIONAL/TERNARY OPERATOR WORKS, IT IS USED INSTEAD OF USING NESTED IF STATEMENTS.
1 Answer
+ 1
condition ? if true : if false
the only limitations with this operator is that you can use only one statement
PLEASE EXPLAIN TO ME HOW THE CONDITIONAL/TERNARY OPERATOR WORKS, IT IS USED INSTEAD OF USING NESTED IF STATEMENTS.