+ 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 ответов
+ 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