0
Can be use characters in switch statement? Can you please explain this with the help of an example in C++ ?
1 Answer
+ 2
Char is an integral type so you can use it in switch
An example would be..
char a = 'a';
a++; // or a= a+1;
cout<< a; // output b
or..
char xxx = 65;
cout<< xxx; // output 65?