Control flow
see also The Thens.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
In computer science and in computer programming, statements in pseudocode or in a program are normally obeyed (or executed) one after the other in the order in which they are written (sequential flow of control).
Related Topics:
Computer science - Computer programming - Pseudocode - Program
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Most programming languages have control flow statements which allow variations in this sequential order:
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
- statements may only be obeyed under certain conditions (choice),
- statements may be obeyed repeatedly (loops),
- a group of remote statements may be obeyed (subroutines).
The use of subroutines does not normally cause any control flow problems,
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
but see the discussions below on early return, error recovery, and labels as parameters.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
At the machine-/assembly language level, it is usually the case that the only instructions available for handling choice and/or loops are goto and conditional goto (often known as variations of jump and/or branch). Compilers for high-level programming languages must translate all control-flow statements into these primitives.
Related Topics:
Machine- - Assembly language - Goto - Compiler - Programming language
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ Table of Content ~
~ What's Hot ~
~ Community ~
| ► | History Forum Come and discuss about History, Civilizations, Historical Events and Figures |
| ► | History Web-Ring A community of sites, blogs and forums dedicated to History. Do not hesitate to submit your site. |
and are licensed under the GNU Free Documentation License.
Lexicon - Privacy Policy - Spiritus-Temporis.com ©2005.