This might be annoying but i really don't understand the switch statement. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

This might be annoying but i really don't understand the switch statement.

Can someone answer the switch simply?šŸ˜µCuz I really don't understand the meaning and how its used.Also pls give some examples.ā˜ŗ

30th Jan 2017, 5:22 PM
Julian Aung
Julian Aung - avatar
2 Respostas
+ 2
some times you will need to programa a lot of if statements to compare a variable with some of its posible values. if you need to do this a lot of times is faster to use a switch statement
30th Jan 2017, 10:36 PM
sebipincha
sebipincha - avatar
+ 3
Sorry for the late reply and Thank U very Much!
16th Mar 2017, 5:31 PM
Julian Aung
Julian Aung - avatar