Ch. 5.8: Sentinels Flashcards
1
Q
What is a sentinel?
A
A sentinel is a special value that cannot be mistaken as a member of the list and signals that there are no more values to be entered. When the user enters the sentinel, the loop terminates.