<<< Arithmetic Assignment Examples | Index | Precedence of Operators >>> |
Conditional operator (also known as arithmetic if,) is a ternary operator
Syntax:
expression1 ? expression2 : expression3
If expression1 is true, then the result of the condition is expression2.
Otherwise, the result of the condition is expression3.
<<< Arithmetic Assignment Examples | Index | Precedence of Operators >>> |