Difference between revisions of "Expression"

From Computer History Wiki
Jump to: navigation, search
(But stubby, but an OK start)
 
(More accurate)
Line 1: Line 1:
In a [[programming language]], 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 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]].
  
 
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 01:01, 27 August 2018

In mathematics, and most programming languages, an expression is an entity which combines a number of data item 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).