C++ Short Hand If Else

C++ Short Hand If Else


C++ Short Hand If Else

The Syntax of Short Hand if statement is as follows:

Condition_check ? expression_when_true:expression_when_false;

Example :

Output :