? : Ternary Operator Syntax
condtion ? exprTrue : exprFalse
if the condition is true, then the operator returns exprTrue ; otherwise it returns exprFalse .
Example:
if(a >= b)
{
max = a;
}
else
max = b;
if the same as
max = a >= b ? a : b;