Pregunta:
Evaluation order (1)
Autor: Christian NRespuesta:
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 calificaciones)
1 answer(s) in total