In above code, if the constant is equal to case 1, the code of first case will execute. If first case is not matched, it will try with and so on if non of the case is matched the code of default: block executes.

If first case is matched and after execution of code, if break; statemet is not found the switch statement will not be terminate instead it again check all the case until last case executes.