- 1
8th Mar 2021, 8:44 PM
TeaserCode
2 Answers
+ 1
in 'switch' statements, 'case's are implicit equality test... so you need to provide it char, and you doesn't need 'if' statement... switch (ch) { case '1': word = "one"; break; case '2': // ... }
8th Mar 2021, 8:56 PM
visph
visph - avatar
0
thanks a lot mr visph.
9th Mar 2021, 4:07 AM
TeaserCode