What does the switch statement do ? Give example.
Answers
Answered by
0
Answer:
Switch statement in C tests the value of a variable and compares it with multiple cases. Once the case match is found, a block of statements associated with that particular case is executed. Each case in a block of a switch has a different name/number which is referred to as an identifier.
I hope it's help you
Similar questions