+ 1
What is the purpose of switch case?
4 Answers
+ 1
switch case is you for predefined condition when you perfectly knows that what you want to compare. if can we use to check any type of condition . but when you are using switch you should know the perfect value.
I am unable to explain this is explained manner but I provided some over view of it
0
Thank you
0
ty and sorry for typos because my phone's autocorrect is shitty
0
usefull for things like menus where users make a selection from one of a known list of options.