Of course, you do not have to use status bits to capture information about the state of a program, because you can use individual variables to record the same information. The extra memory required is not of practical significance.
Nevertheless, the example developed in this chapter involves a status variable that captures information about the state of a program. The example involves the state of a programrather than inputoutput device controlbecause the details that govern the control of real inputoutput devices are intricate, highly device specific, and rarely a matter of concern to programmers new to C.