Computer Science, asked by bhoomiyadav626, 8 months ago

example of switch statement​

Answers

Answered by ishitasahu2210
5

Explanation:

Example of Switch Case

Explanation: In switch I gave an expression, you can give variable also. I gave num+2, where num value is 2 and after addition the expression resulted in the other one . Since there is no case defined with value 4 the default case is executed.

Mark as branliest plzz!!!

Answered by ComradeRK
4

Explanation:

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.

mark it brainliest answer

have a nice day

Similar questions