| Three Programming Control Structures |
Sequences, - the statements in code are sequential (even when the sequences are run in parallel or concurrently).
Selection
(e.g. the If statement) means that
program
control may be transferred from one sequence to another sequence of instructions.
| More precisely, we can say that the essential characteristic
of structured code is
linearity of control 'Control' is passed from statement to statement sequentially. Linearity of control requires that all program constructs have: with only defined legal violations of these requirements (e.g. premature exit from an iteration - loop). |
|
|
|
|
![]() |
|
|
![]() |
|
|