C++ | Sololearn: Learn to code for FREE!
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.

26th May 2017, 11:47 AM
Dimpho
1 Answer
+ 1
condition ? if true : if false the only limitations with this operator is that you can use only one statement
26th May 2017, 12:10 PM
Keshave Jat
Keshave Jat - avatar