"break;"
Jumps to the end of the following statements:
switch(){}
for(){}
while(){}
do{}while();
If it is contained within more than one of those statements it moves one step out (for lack of a better way of saying it). So for example:
while(1){
if(something){
break; //go to the end of the while(1) statement.
}
}
while(1){
while(2){
if(something){
break; //go to the end of the while(2) statement as it only steps out by one level.
}
}
}
switch(1){
case 1:
while(1){
if(something){
break; //go to the end of the while(1) statement as it only steps out by one level.
}
}
//this is the end of the while(1) statement
if(boo){
break; //go to the end of the switch
}
break; //go to the end of the switch
case default:
//you can get away without a break here as we are already at the end
}
//This is end of switch