๐Ÿ’ปap computer science a review

Counter

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

A counter is a variable that keeps track of a value, usually used to count or iterate through a loop.

"Counter" also found in: