C - Decision Making Control Statements


Next >>

C provides most powerful decision making statement. Decision making statement allow the user to test one or more condition. Based on the condition, the user can make decision to execute the block of code. The condition can be any relational or logical expression. The condition statement must produce either true (non-zero or non-null value) value or false(zero and null value) value.

Flow Chart

Types of Decision Making Statement

  • if statements
  • if..else statements
  • Nested if statements
  • if else if ladder
  • switch statements

<< Previous

Next >>