Conditional Operators [ ?: ] in C

  1. They are also called as Ternary Operator .
  2. They also called as ?: operator 
  3. Ternary Operators takes on 3 Arguments
Syntax :
expression 1 ? expression 2 : expression 3
Meaning of Syntax :
  1. expression1 is nothing but Boolean Condition i.e it results into either TRUE or FALSE
  2. If result of expression1 is TRUE then expression2 is Executed
  3. Expression1 is said to be TRUE if its result is NON-ZERO
  4. If result of expression1 is FALSE then expression3 is Executed
  5. Expression1 is said to be FALSE if its result is ZERO

Bookmark & Share


Tags / Keywords : | ,

0 comments

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email