Variables: Difference between revisions

From Computer Science Wiki
No edit summary
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>]]


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

Revision as of 19:40, 18 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" please use the definition stated above.

See also[edit]

Variables in php

Standards[edit]

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

References[edit]