Conditional / ternary operator (?:)

C offers a conditional operator (?:) that store a value depending upon a condition. This operator is called ternary operator as it requires three operand.
General form of conditional operator is as follow
expression1? Expression2 : Expression3

No comments

Theme images by Jason Morrow. Powered by Blogger.