created: 12/10/99; revised: 01/22/00, 07/18/02, 01/19/06, 07/26/14, 07/27/17

go to home page   go to next page hear noise highlighting

CHAPTER 32 — Boolean Expressions and
Short-circuit Operators

A boolean expression evaluates to a true/false value. This picks the branch of an if statement or allows a loop to continue. Sometimes a 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 examines this topic and discusses some additional boolean operators.

Chapter Topics:


QUESTION 1:

What is the true/false value of:

12 < 6 && 18 > 1

go to home page   go to next page