💻ap computer science a review

Sentinel value

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

A special value (often -1) used to indicate that a search or operation failed or that a condition was not met.

AP course connection

Topic 2.1: 2.10 Developing Algorithms Using Strings

Unit 2

"Sentinel value" also found in: