A sentinel value is a special marker, distinct from actual data, used to signify the end of a data sequence or a specific condition within an algorithm. It acts as a silent guardian, like a Boundary or a Flag, guiding program logic without being processed as true information.
See also