study guides for every class

that actually explain what's on your next test

Flag

from class:

AP Computer Science A

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.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.