Please enable JavaScript.
Coggle requires JavaScript to display documents.
Control Flow ::refers to the order in which statements of
an imperative…
Control Flow ::refers to the order in which statements of
an imperative or declarative program are executed or evaluated
-
-
-
Control statement: Basic mechanisms for controlling the execution of
individual statements within a program & reflected
underlying architecture
-
Compound Statements
-
-
One of the language features that helps make control statement design easier
is the ability to define
-
-
-
-
Labels : A label is an explicit name or number (variable) assigned to a
fixed position within the source code
Label forms
Unsigned Integers FORTRAN, Pascal
most languages, labels are attached to statements by colons
-
-
-
Break Statement
-
Causes control to move forward in the program to an explicit point at the
end of a given control structure such as while
-
Selection statements
-
-
Single-way selection
FORTRAN, BASIC & ALGOL 60
Nesting Selectors
Can be interpreted in two different ways depending on whether the else
clause is matched with the first then clause or the second
-
-
-
-
Iterative Statements
- Simple repetition ::Statement head specifies that the body is to be executed some
fixed number of times.
- Counter-controlled loops Has a variable : loop variable
- Logically Controlled Loops :: Repetition control is based on a boolean expression
- User-Located Loop Control Mechanism
- Iteration based on data structures :
- User-Defined Iteration Control