Jump to content

Control variable (programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by GenQuest (talk | contribs) at 05:11, 12 September 2015 (Create article to remove repeated conflations with Control variable article). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A control variable in computer programming is a program variable that is used to regulate the flow of control of the program .[1]

Usage

A loop control variable is used to regulate the number of times the body of a program loop is executed; it is incremented (or decremented when counting down) each time the loop body is executed. A single control variable can identify the present state of a computer program.

See also

References

  1. ^ Bubnicki, Zdzislaw (2005). Modern Control Theory. Berlin: Springer Verlag.