In C and programming languages with C style syntax break is used to exit a block of code. Primarily it is used to exit loops when some condition is met.
while (1)
{
//do something...
if (done)
{
break;
}
//do something else...
}
Of course break is also used quite heavily in
switches to keep all hell from breaking loose.