Control structure

  • Authors:
  • Jerrold L. Wagener

  • Affiliations:
  • -

  • Venue:
  • Encyclopedia of Computer Science
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

A control structure is a programming language construct that specifies a departure from the normal sequential execution of statements. In its broadest sense, this includes calling a procedure, resuming a coroutine (q.v.), and initiating tasks, all of which involve transferring the path of execution to another program unit. (In the case of recursion (q.v.), the "other" program unit is a copy of the calling program.) It also includes, in its broadest sense, the "parallel" (simultaneous) performance of two or more operations within a given program unit. In its more common usage, however, control Structure refers to the facilities for controlling the sequence of statement execution within a given program unit, and includes special facilities for selection control, repetition control, and exception handling. The description here is limited to this more common view. Usually, such facilities are in the form of "extended" statements, involving several parts in different lines--hence. the term control structure.