
184 Decision Statements
side another if-else statement. This
kind of nesting can be limitless.
(7) A common programming construct is the
else-if ladder, sometimes called the
if-else-if staircase because of its
appearance. In the program one can write
a ladder of else-if. The program goes
down the ladder of else-if, in anticipa-
tion of one of the expressions being true.
(8) C/C++ has four statements that perform
an unconditional control transfer. They are
return, goto, break and continue.
Of these, return is used only in func-
tions. The goto and return may
be used anywhere in the program but
continue and break statements ...