+ 1

difference between switch and if elseif else?

18th Jul 2016, 6:06 AM
Amit - avatar
3 ответов
+ 2
switch case if your condition is true in your case then not check forward case if elseif is check every if elseif condition
18th Jul 2016, 8:20 AM
Amit - avatar
switch case only course integer and char. but if else can another type data
19th Jul 2016, 2:31 AM
Yovi Eka Putra
Yovi Eka Putra - avatar
Switch is like a big brother and can take a jump directly to the right area unlike if elseif else.
19th Jul 2016, 4:20 PM
Devansh Sharma
Devansh Sharma - avatar