Chapter 5 Flashcards

1
Q

What is short circuit evaluation?

A
  • With the && operator, if the first expression is false, the second is never evaluated
  • With the || operator, if the first expression is true, the second is never evaluated, but if the first is false, it is
How well did you know this?
1
Not at all
2
3
4
5
Perfectly