Computer Science, asked by honeyraza40786, 5 months ago

Which statement can be used in place of switch statement?​

Answers

Answered by nancychaterjeestar29
0

Answer:

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

Switch statements function somewhat similarly to if statement used in programming languages C/C++, C#, Visual Basic .NET, Java and also exists in most high-level imperative programming languages such as the Pascal, Ada, C/C++, C#, Visual Basic .NET, Java, and in many other types of the language, using such keywords as switch, case, select or inspect.

Switch statements come in the two main variants: the structured switch, as in Pascal, which takes exactly one branch, and the unstructured switch, as in C, which functions as the type of goto. main reasons for using a switch include improving clarity, by the reduction otherwise repetitive coding, and (if the heuristics permit) also offering potential for faster execution through easier compiler optimization in many cases.

#SPJ2

Similar questions