Case Sensitive Comparison: The switch statement compares the String object in its expression with the expressions associated with each case label as if it were using the equals() method of String class consequently, the comparison of String objects in switch statements is case sensitive .3 Ara 2021
Read moreHow do you make a switch case not case-sensitive?
Before the switch(), add: choice = toupper(choice); And if you haven’t already got it, #include <ctype .
Read more