Control Statements in C
What are Control Statements in C ?
Control Statements are the statements which are used to control the execution of a program.
There are three type of Control Statements
- Branching Statements
- Looping Statements
- Jumping Statements
Branching Statements
Branching Statements also called as conditional or decision making statements.Branching is so called because the program chooses to follow one branch or another.These are:
- if statement
- if else statement
- if else if statement
- switch case statement
Looping Statements
Looping Statements also called as itrative statements.Loops provide a way to repeat commands and control how many times they are repeated.These are:
- for loop
- while loop
- do while loop
Jumping Statements
Jumping statements are used to jump to another statement elsewhere in the program. Mostly these are used to interrupt or jump in loops and switch statements.These are:
- break
- continue