New course! Every coder should learn Generative AI!
Try a free lesson- 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