Preview
Control Structures in C
Control structure are C language statements used to control or change the flow of a program. Control structures are divided into three categories:
- Selection Statements
- Iterative/Looping Statements
- Jumping Statements
1. Selection statements
Selection statements execute a set of statements depending upon some Condition. They are categorized into two types:
2. Looping statements
They are used to repeat a set of statements depending upon some condition. They are categorized into three types:
3. Jumping statements
They are used to transfer the pointer of program control from one point to another point within a program. There are categorized into three types.
- break
- continue
- goto