Advertisements. A switch statement allows a variable to be tested for equality against a list of values . Each value is called a case, and the variable being switched on is checked for each case.
Read moreCan I use switch for char in C++?
switch statement can handle int and char in C++ .9 Eki 2013
Read more