Skip to content

Glossary: C++ Basics

switch

Also written: case, default

A statement that picks a block by matching a whole number or `char` against fixed `case` values, with `default` for when nothing matches.

Where the book teaches it

Related terms

breakFall-through