Difference between revisions of "Expression"

From Computer History Wiki
Jump to: navigation, search
(More accurate)
(typo, more content)
Line 1: Line 1:
In mathematics, and most [[programming language]]s, an '''expression''' is an entity which combines a number of data item with [[operator]]s to produce a value which is then used in some way - perhaps saved in [[main memory]] or a [[Central Processing Unit|CPU]] [[register]] for use later in the [[program]].
+
In mathematics, and most [[programming language]]s, an '''expression''' is an entity which combines a number of data items (numbers, [[variable]] values, etc) with [[operator]]s, to produce a value which is then used in some way - perhaps saved in [[main memory]] or a [[Central Processing Unit|CPU]] [[register]] for use later in the [[program]].
  
 
An example of an expression would be ''((A * 3) + b)''.
 
An example of an expression would be ''((A * 3) + b)''.
  
 
{{stub}}
 
{{stub}}

Revision as of 15:46, 2 December 2018

In mathematics, and most programming languages, an expression is an entity which combines a number of data items (numbers, variable values, etc) with operators, to produce a value which is then used in some way - perhaps saved in main memory or a CPU register for use later in the program.

An example of an expression would be ((A * 3) + b).