Previous: 4.2 Sample Character Processing Functions
Up: 4 Processing Character Data
Next: 4.4 Mixing Character and Numeric Input
Previous Page: 4.2.4 Extracting Words
Next Page: 4.3.1 The switch Statement
Earlier in this chapter, we saw the use of a chain of if...else if constructs for a multiway decision. This is a common operation in programs so the C language provides an alternate multiway decision capability: the switch statement. In addition, two other control constructs are discussed in this section: the break and continue statements.