Home Segments Index Top Previous Next

467: Mainline

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 program—rather than input–output device control—because the details that govern the control of real input–output devices are intricate, highly device specific, and rarely a matter of concern to programmers new to C.