Please enable JavaScript.
Coggle requires JavaScript to display documents.
EXPRESSIONS - Coggle Diagram
EXPRESSIONS
formed from
-
-
Operands
Evaluation order
- Variables
- Constants
- Parenthesised expressions
- Function references
Side effects occur when change the value of variables in an expression after the execution of that expression.
The solutions are
- Write the language definition to disallowing functions with side effects.
- No two-way parameters in functions
- No non-local references in functions
Advantage: it works
- Write the language definition to demand that operand evaluation order be fixed.
Disadvantage: limits some complier optimizations
Operators
How they operate on data values ?
- Bitwise operators
- Simple data object operators
- Composite data object operators
Who defines them?
- Predefined operators
- User-defined operators
-
-
Operator overloading
( using the same operator for more than one purpose.)
- Same operator is used for the the same action but with different data type.
- Same operator is used for similar action.
- Same operator for completely different actions
-
-
-
-
Relational Expression
The paragraph explains using relational operators to compare values in programming. These operators yield true or false outcomes.
-