In a switch statement, the expression inside switch’s left & right parenthesis is executed first.If any case matches the expression value, program control jumps directly to that case and statements of that case are executed.If expression value does not match with any case, then program control jumps directly to the default case and statements of default case are executed.

Note

Along with integer & characters, strings can also be used as constants with cases.