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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly