Skip to content
EntityQ868299· pop 35· linked from 546 articles

control flow

Sign in to save

Also known as control flow statement, flow of control

order in which individual statements, instructions or function calls of an imperative program are executed or evaluated

Wikidata facts

Show 2 more facts
Commons category
Control flow
Sources (2)

via Wikidata · CC0

~33 min read

Article

In software, control flow (or flow of control) describes how execution progresses from one command to the next. In many contexts, such as machine code and an imperative programming language, control progresses sequentially (to the command located immediately after the currently executing command) except when a command transfers control to another point – in which case the command is classified as a control flow command. Depending on context, other terms are used instead of command. For example, in machine code, the typical term is instruction and in an imperative language, the typical term is statement.

Although an imperative language encodes control flow explicitly, languages of other programming paradigms are less focused on control flow. A declarative language specifies desired results without prescribing an order of operations. A functional language uses both language constructs and functions to control flow even though they are usually not called control flow statements.

Connections

Categories