when there are many conditions to testusing the if and else-if constructs becomes complicated and confusing thereforeswitch case statements are often used as an alternative to long if statements that compare variable to several 'integralvalues (integral values are those values that can be expressed as an integersuch as the value of charswitch statements are also used to handle the input given by the user we have already seen the syntax of the switch statement the switch case statement compares the value of the variable given in the switch statement with the value of each case statement that follows when the value of the switch and the case statement matchesthe statement block of that particular case is executed did you notice the keyword default in the syntax of the switch case statementdefault is the case that is executed when the value of the variable does not match with any of the values of the case statements that isdefault case is executed when no match is found between the values of switch and case statements and thus there are no statements to be executed although the default case is optionalit is always recommended to include it as it handles any unexpected case in the syntax of the switch-case statementwe have used another keyword break the break statement must be used at the end of each case because if it is not usedthen the case that matched and all the following cases will be executed for exampleif the value of switch statement matched with that of case then all the statements in case as well as the rest of the cases including default will be executed the break statement tells the compiler to jump out of the switch case statement and execute the statement following the switch-case construct thusthe keyword break is used to break out of the case statements advantages of using switch-case statement switch-case statement is preferred by programmers due to the following reasonseasy to debug easy to read and understand ease of maintenance as compared to its equivalent if-else statements like if-else statementsswitch statements can also be nested executes faster than its equivalent if-else construct programming example write program to determine whether the entered character is vowel or not #include int main(char chprintf("\ enter any character ")scanf("% "&ch)switch(chcase ' 'case ' 'printf("\ % is vowel"ch)breakcase ' 'case ' 'printf("\ % is vowel"ch)breakcase ' 'case ' '