Monday, May 23, 2016

If | Condition Statements in C

C Language supports the condition statements.we can call condition statements as control or decision making statements.

  1. If Statement
  2. Switch Statement
  3. Conditional operator statement
  4. goto statement
Condition statements are used for execute an instruction or sequence of instruction only if condition is fulfilled. The condition return TRUE or FALSE.

Simple if Statement

syntax of simple if statement
if(testexpression(or) Condition) { Statements-block; }

No comments:

Post a Comment