Flags are atomic data structures used to identify state in a program.
A flag field is an integer interpreted as a sequence of boolean bits, each called a flag. A single flag has two possible states: 0
, representing false or off, and 1
, representing true or on.
This tag can be used for problems related to flag.
Source