Computer Science, asked by rishi9267, 11 months ago

Explain the SWITCH statement with an example​

Answers

Answered by Zisha7
8

Answer:

A switch statement tests the value of variable and compares it with multiple cases. Once the case match is found, a block of statement associated with that particular case is executed. Each case in the block of switch has a different name/number with a referred to as an identifier.

Answered by murmujyotilal
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. ... If a case match is NOT found, then the default statement is executed, and the control goes out of the switch block.

Similar questions