Variable (programming)

noun · Computer science

Definition

A named location in memory that stores a value which can change.

Explanation

In many languages variables have a data type.

Example

age = 15 stores the value 15 in the variable age.

Common confusion

In programming, the equals sign usually means assign, not equal.

Related terms

Study guides that use this term

Entry status: written by the editorial team and awaiting independent review. Spot an error? Use our corrections page.

← All vocabulary