C Language - Control Statements - Control Statements

Control Statement

Control statements enable us to specify the flow of program control; ie, the order in which the instructions in a program must be executed. They make it possible to make decisions, to perform tasks repeatedly or to jump from one section of code to another. There are two types of control statements:

  • Branching Statments
  • Looping Statements

Branching Statements

  1. If statement
  2. Switch case
  3. Go To
If statement

There are four types of if statement are used they are given below.

  1. Simple if
  2. If Else
  3. Nested if else
  4. Ladder else if
Jump statement

There are two types of jump statement they are given below.

  1. Switch case statement
  2. goto statement