CHAPTER 40 --- Boolean Expressions and Short-circuit Operators
A boolean value (a true/false value) picks the branch
of an if statement or allows a loop to continue.
Sometimes the boolean expression is more complicated
than we have seen so far in these notes.
Often a program must make a decision based on a number of factors.
This chapter will examine this topic and discuss some additinal boolean
operators.
Chapter Topics:
- Short-circuit && and || operators.
- Non-short-circuit & and | operators.
- Expressions made with several && 's.
- Expressions made with several || 's.
- Expressions made with mixed && and || 's.
- Precidence of && and ||
|