CS 3304: Comparative Languages
Arithmetic Expressions
[
Course Documents
] : [
Arithmetic Expressions
]
Previous
Contents
Next
Keyword Index
Short Circuit Evaluation
Stop evaluating operands of logical operators once result is known
Pascal: does not use short-circuit evaluation
Problem:
index := 1; while (index <= length) and (LIST[index] <> value) do index := index + 1