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
- Data typeThe kind of value a variable holds, such as integer, string or Boolean.
- IntegerA whole number, positive, negative or zero.
- StringA sequence of characters, such as text.
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