home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH02 / A02231.TXT < prev    next >
Encoding:
Text File  |  1993-08-10  |  459 b   |  9 lines

  1. A break statement lets you end a do, for, while or switch
  2. statement and exit from it at any point.  We have already seen the
  3. use of break in a switch statement to end a case.  In a switch
  4. body, the break statement ends the processing of the switch body
  5. and control is transferred to the statement after the switch
  6. statement.
  7. In a "do", "for" or "while" loop, the break statement ends the
  8. loop and moves control to the next statement outside the loop.
  9.