Variable

From Computer History Wiki
Revision as of 17:37, 14 December 2018 by Jnc (talk | contribs) (+cat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.