(a) demonstrate the usage of a switch statement with an example.
Answers
Answered by
2
Answer:
Switch statement in C tests the value of a variable and compares it with multiple cases. Each case in a block of a switch has a different name/number which is referred to as an identifier. The value provided by the user is compared with all the cases inside the switch block until the match is found.
Similar questions