ECE 10
Dr. Klefstad
Selection Statements

Outline

Boolean expressions

Primitive type bool

Equality Operators

Relational Operators

Logical Operators (short circuited)

Precedence rules

The if Statement

Nesting if Statements

if Statement Caveats

The switch Statement

Another switch Statement Example

switch Statement Caveats

Another switch Statement Caveat