Skip to main content

Switch statement

A control mechanism in which the value of a variable or expression changes the execution of a program and which usually involves multiple branches.