💻ap computer science a review

Flag

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

Definition

In programming, a flag is a variable or condition that acts as a signal or indicator. It helps control the flow of execution within a program.

"Flag" also found in:

2,589 studying →