๐Ÿ’ปap computer science a review

Flag

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 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: