Computer Science, asked by vishalpatel6549, 6 months ago

define switch statement with syntax and explain ?

Answers

Answered by Anonymous
9

 \huge {\underline {\underline {\sf {❥ \: Answer}}}}

  • In computer programming languages, a switch statement is a type of selection control mechanism used to allow the value of a variable or expression to change the control flow of program execution via search and map.
  • A general syntax of how switch-case is implemented in a 'C' program is as follows: switch( expression ) { case value-1: Block-1; Break; case value-2: Block-2; Break; case value-n: Block-n; Break; default: Block-1; Break; } Statement-x; The expression can be integer expression or a character expression.
Answered by Anonymous
2

Answer:

In computer programming languages, a switch statement is a type of selection control mechanism used to allow the value of a variable or expression to change the control flow of program execution via search and map.

Hope it helps uh

Similar questions