Can we use char in switch case in C++?
switch statement can handle int and char in C++ . char data type can hold only one letter. Thus, if you input only one letter ( X ) for XL size will be fine …9 Eki 2013
Read moreCan switch case be used for char?
You can use char ‘s for the switch expression and cases as well .
Read moreWhat is a switch in C++?
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