Question:
Evaluation order (1)
Author: Christian NAnswer:
Subexpressions are evaluated (with respect to the run-time) strictly from left to right. Logical expression are »lazyly« evaluated (conditional evaluation, lazy evaluation) – only as long as the final result is not yet determined: • x && y yields always false, if x == false • x || y yields always true, if x == true Therefore, y is not evaluated in these cases
0 / 5 (0 ratings)
1 answer(s) in total