switch and default | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

switch and default

switch and default is same as if and else... another way for to do??

8th Aug 2017, 10:37 PM
Josimar Junior
Josimar Junior - avatar
2 Respostas
+ 6
Pretty much. But there's lots of things you cannot do with switch cases, that you can in if statements. Switch is essentially heavily optimized, so a faster version of the if statement.
8th Aug 2017, 10:55 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
ook thank youušŸ˜‰šŸ‘
9th Aug 2017, 3:45 PM
Josimar Junior
Josimar Junior - avatar