Geography, asked by mansoorkhan40233, 9 months ago

what is Switch Selection Statements in C language? Explain with the help of diagram.​

Answers

Answered by sameeha343
10

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.

Each value is called a case, and the variable being switched on is checked for each switch case.

There are four new keywords we're introduced to here: switch , case , break , and default

Answered by 2001roars
3
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