Switch Case Statement in C/C++ Tutorial with Examples
C/C++ programming languages provides switch … case statement for selection according to given switch state. switch … case can be used for different cases in order to control the flow of the application. Syntax switch … case has the following syntax. switch(EXPRESSION) { case CONDITION1: CASE1_CODE; break; case CONDITION2: CASE1_CODE; break; … default: … Read more