Ch. 4.6: The if/else if Statement Flashcards
1
Q
What is the if/else if statement?
A
The if/else statement tests a series of conditions. If is often simpler to test a series of conditions with the if/else if statement than with a set of nested if/else statements.
2
Q
What is a trailing else?
A
The last else clause, which does not have an if statement following it is referred to at the trailing else.