Variable: Difference between revisions
From Computer History Wiki
Jump to navigationJump to search
An OK start |
m +cat |
||
| Line 4: | Line 4: | ||
{{semi-stub}} | {{semi-stub}} | ||
[[Category: Basics]] | |||
Latest revision as of 17:37, 14 December 2018
A variable is a data item with a name (and usually a type, too), which a program can read (to use) and write (to save the value of some expression) as it executes.
In assembly language programs, a variable is usually just a name for a word in main memory, but in higher-level programming languages, a variable can be any data type supported by that language.