Variables: Difference between revisions

From Computer Science Wiki
No edit summary
No edit summary
Line 3: Line 3:
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>
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" (or best definition) please use the definition stated above.  


== See also ==
== See also ==

Revision as of 05:56, 27 September 2016

Programming basics[1]

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" (or best definition) please use the definition stated above.

See also[edit]

Variables in php

Standards[edit]

  • Define the terms: variable, constant, operator, object.

References[edit]