0
What is switch?
4 Answers
+ 2
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 a multiway branch.
+ 1
What ?Manessa said.
But it's like a if statement except you can't use mathrmatical operators ex: +Ă<>=
+ 1
switch is a control statement to switching to different cases as per passed value if no case is matched the default case is executed.
+ 1
It's like a if else statement, but you can't use operators or bools. Another difference is that the values are alwaysfixed,it cant be skmething like less than 10 etc. Hope this helps!