What is switch statement? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is switch statement?

Tell me easy definition or method to learn this easily.

6th Aug 2021, 7:32 AM
Muzamil
Muzamil - avatar
3 Answers
+ 11
It is a statement which is used to test multiple condition instead of using else if or if statment
6th Aug 2021, 7:49 AM
Jano c͓̽o͓̽d͓̽e͓̽r͓̽
Jano c͓̽o͓̽d͓̽e͓̽r͓̽ - avatar
+ 2
Muzamil The description of your question seems like a dry command. Please Google your queries before asking it here.
6th Aug 2021, 7:38 PM
Calvin Thomas
Calvin Thomas - avatar