History, asked by kumaranand0950, 5 months ago

Define the switch statement with suitable example.​

Answers

Answered by PrincessTeja
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 rinasingh1983
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