Electrical and Computer Engineering
12 of 23
UAH
CPE 112
Sentinel-Controlled Loops
•A special data value is used to signal the program that there is no more data to be processed.
•A sentinel value must be something that never shows up in the normal input to a program.