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
CBSE BOARD X,
2 months ago
English,
2 months ago
Math,
2 months ago
Social Sciences,
5 months ago
Science,
5 months ago
Math,
10 months ago
Math,
10 months ago