SWITCH Statement in C Language
SWITCH Statement in C Language: (1) SWITCH Statement successively tests the value of an expression against a list of integer or character constants. When a match is found, the statements associated with that constant are executed. (2) Sample C language code and its output, as shown: #include <stdio.h>#include <conio.h>int main(){ int x; x = 2;switch(x) { …