Expression (computer science): Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Tags: Mobile edit Mobile web edit
Line 3:
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]], [[boolean expression|logical]], [[complex data type]] or many others.
 
For example, <code>2+3</code> is an arithmetic and programming expression which evaluates to <code>5</code>. A variable is an expression because it denotes a value in memory, so <code>y+6</code> is an expression. An example of a relational expression is <code>4≠4</code>, which evaluates to <code>false</code>.<ref>[https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Expressions Javascript expressions, Mozilla] Accessed July 6, 2009</ref><ref>[https://www.cs.drexel.edu/~rweaver/COURSES/ISTC-2/TOPICS/expr.html Programming in C] Accessed July 6, 2009</ref>hhbhh
 
==Void as a result type==