+ 1

I have a problem in the ternary operator

Guys I am not understanding how the ternary operator (?)executes a statement.

4th Jun 2018, 10:27 AM
Bilash Saha
3 Answers
+ 5
It is just a one-liner if-else statement Of course if you are confused, just use an if-else statement
4th Jun 2018, 10:33 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
(condition) ? (expression if true) : (expression if false);
4th Jun 2018, 10:33 AM
Ulisses Cruz
Ulisses Cruz - avatar
0
hi bro can you help me in c++? i have to create a code that " to find a minimum of the massive" and " to find a maximum of the massive" but the code have to be possess " cin>>"
8th Jun 2018, 8:57 AM
Mirobidjon Ismonov
Mirobidjon Ismonov - avatar