Expression (computer science): Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit
Undid revision 878378633 by 2405:205:211F:1F2:0:0:B17:58A4 (talk): Revert what I believe to be a test edit.
Line 1:
An '''expression''' in a [[programming language]] is a combination of one or more [[Constant (programming)|constants]], [[variable (programming)|variable]]s, [[operator (programming)|operator]]s, and [[function (programming)|function]]s that the programming language interprets (according to its particular [[Order of operations|rules of precedence]] and of association) and computes to produce ("to return", in a [[state (computer science)|stateful]] environment) another value. This process, as for [[mathematical expression]]s, is called evaluation.
 
This process, as for [[mathematical expression]]s, is called evaluation.
 
In simple settings, the [[return type|resulting value]] is usually one of various [[primitive data type|primitive types]], such as numerical, [[string (computer science)|string]], and [[boolean expression|logical]]; in more elaborate settings, it can be an arbitrary [[complex data type]].