Conditional Operators

-Conditional operators takes 3 arguments at a time.
-General format of a conditional expression is Expression1?Expression2:Expression3
Expression 1 is evualated first, if it is tru, Expression 2 is evualted, and that is the value of the expression.
If Expression1 is false, then Expression3 is evualated and that is the value of the expression.
-For example:
int x=15,y;
y=(x==11)?5:4
(If x is equal to 11 the statement will store 5 in y, otherwise statement will store 4 in y.