Control variable (programming)

Not to be confused with Control variable.

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.

References

  1. Bubnicki, Zdzislaw (2005). Modern Control Theory. Berlin: Springer Verlag.
This article is issued from Wikipedia - version of the 5/20/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.