1 minute read

3.1 PROGRAM CONTROL STATEMENT

Next Article
5.1 FUNCTION

5.1 FUNCTION

3.1 PROGRAM CONTROL STATEMENT

Control statements or known as logical structure or control structure refer to the order of execution of instructions in a program. In all examples, the instructions were executed sequentially one by one, from top downwards. Most real-life problems require decision making, comparing values, and based on the comparison certain action will be taken. C provides structure that will allow the non-sequential execution of program instructions such as, a whole block of instructions can be executed, repeated, or skipped.

Advertisement

Figure 3.0: Program Control Statement

This article is from: