๐Ÿ’ปap computer science a review

Variable

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 variable is used to store and represent a value or piece of data. It has a name, a data type, and can hold different values that can be changed during the execution of the program.