CS 3304: Comparative Languages
Arithmetic Expressions
[
Course Documents
] : [
Arithmetic Expressions
]
Previous
Contents
Next
Keyword Index
Side Effects
Functional side effects--when a function changes a two-way parameter or a non-local variable
The problem with functional side effects:
When a function referenced in an expression alters another operand of the expression
Example, for a parameter change:
a = 10; b = a + fun(&a); /* Assume that fun changes its param */