Variables: Difference between revisions
Mr. MacKenty (talk | contribs) No edit summary |
Mr. MacKenty (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
[[file:arrows.png|right|frame|Programming basics<ref>http://www.flaticon.com/</ref>]] | [[file:arrows.png|right|frame|Programming basics<ref>http://www.flaticon.com/</ref>]] | ||
The official definition: in computer programming, a variable is a storage location paired with an associated symbolic name (an identifier) which contains a value.<ref>https://en.wikipedia.org/wiki/Variable_(computer_science)</ref> | |||
In other words, '''a variable is a storage location for data'''. Variables have names. Some computer language mandate you assign a [[data type]] to variables. When asked for the "official definition" please use the definition stated above. | In other words, '''a variable is a storage location for data'''. Variables have names. Some computer language mandate you assign a [[data type]] to variables. When asked for the "official definition" please use the definition stated above. |
Revision as of 19:40, 18 September 2016
The official definition: in computer programming, a variable is a storage location paired with an associated symbolic name (an identifier) which contains a value.[2]
In other words, a variable is a storage location for data. Variables have names. Some computer language mandate you assign a data type to variables. When asked for the "official definition" please use the definition stated above.
See also[edit]
Standards[edit]
- Define the terms: variable, constant, operator, object.