Expression (computer science): Difference between revisions

Content deleted Content added
A formal definition of expression is added and referenced, minor edits
Void as a result type: rm confusing analogy: x/0 will be assigned type "int" at compile time, and result in a zero-divide exception - no "void" is involved here
Line 15:
</ref>
Values of type void cannot be used, so the value of such an expression is always thrown away.
This is similar to the concept of [[Undefined (mathematics)|undefined]] values in mathematics, like the result of <code>x / 0</code> (division by zero) is undefined.
 
==Side effects and elimination==