Define the switch statement with suitable 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.
Answered by
1
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.
Similar questions
Math,
3 months ago
Social Sciences,
7 months ago
Science,
7 months ago
Math,
11 months ago
Math,
11 months ago