
void main()
{
while
(condition)
{
statement;
continue;
statement;
}
}
Scope
of loop
Out of loop
Fig. 6.10 Working of continue statement
SUMMARY
(1) This chapter discusses the basics of control
structure of C++ language.
(2) The C++ control structure covers certain
operations that are performed repetitively
called as loop statements.
(3) C/C++ has four statements that perform an
unconditional control transfer. These are
return, goto, and break and con-
tinue. Of these, return is used only in
functions. goto and return may be used
anywhere in the program but continue
and break statements may be used only
in conjunction with a loop statement.
(4) ...