explain the working of switch statement with an example
Answers
Answered by
3
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.
i hope it will help yuh dear
Similar questions
Biology,
2 months ago
Social Sciences,
2 months ago
Math,
4 months ago
Chemistry,
4 months ago
English,
10 months ago
Computer Science,
10 months ago