Computer Science, asked by abidyashwor7, 5 months ago

4. Explain the switch statement with an example.​

Answers

Answered by ApurvaRajnandni
0

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.

If this helps you then please mark me as brainliest.

Answered by aggarwalakshat50
0

Answer:

switch statement is nothing it is a program where we have to choose one from many options

It is a menu driven program

Similar questions