+ 1

What is the purpose of switch case?

22nd Jan 2017, 3:52 PM
saiabi
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
22nd Jan 2017, 4:00 PM
Keshave Jat
Keshave Jat - avatar
0
Thank you
22nd Jan 2017, 4:15 PM
saiabi
0
ty and sorry for typos because my phone's autocorrect is shitty
22nd Jan 2017, 5:30 PM
Keshave Jat
Keshave Jat - avatar
0
usefull for things like menus where users make a selection from one of a known list of options.
22nd Jan 2017, 5:31 PM
Stefan Ellis
Stefan Ellis - avatar