Google
 
Webcprogramming.com




An Affiliate of AIHorizon




break

loop
{
  break;
  //code...
}
or
switch( variable )
{
    case value:
    /* code */
    break;

    case value:
    /* code */
    break;
}
Break is used within loops and switch statements to jump to the end of the code block. It causes the "//code..." above to be skipped and terminates the loop. In switch case statements, break causes the remaining cases to be skipped--it prevents "falling through" to other cases.


-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.