Content deleted Content added
m convert special characters found by Wikipedia:Typo Team/moss (via WP:JWB) |
No edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
{{Short description|Syntactic entity in a programming language with a determinable value}}
In [[computer science]], an '''expression''' is a [[Syntax (programming languages)|syntactic]] entity in a [[programming language]] that may be evaluated to determine its [[value (computer science)|value]].<ref>[[John C. Mitchell|Mitchell, J.]] (2002). Concepts in Programming Languages. Cambridge: Cambridge University Press, ''3.4.1 Statements and Expressions'', p. 26
In simple settings, the [[return type|resulting value]] is usually one of various [[primitive data type|primitive types]], such as [[string (computer science)|string]], [[boolean expression|boolean]], or numerical (such as [[integer (computer science)|integer]], [[floating-point number|floating-point]], or [[complex data type|complex]]).
Expressions are often contrasted with [[Statement (computer science)|statement]]
==Examples==
Line 31:
==See also==
* [[Evaluation strategy]]
|