Flag Variables

A flag variable is a variable used to keep track of something that has two states, for example a door, which can only be open or closed. Because it only keeps track of two states, it can have only two values, either 0 or 1. In the case of the door, it is 0 if it is open, and 1 if it is closed.

Specific flag variables

Related Pages

Categories: Programming : Variables
page_revision: 4, last_edited: 1237847889|%e %b %Y, %H:%M %Z (%O ago)