This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Darkshad3
about 9 years

i don't understand this at all

i don’t know what a switch is i don’t know what a break is & what is default & why & when would they / are they used

it never explained it to begin with & it expects me to use it.

Answer 5511747b76b8fe95870025e8

1 vote

Permalink

switch is multiple “if”s in one. break ends case, so it don’t try to do code in rest of cases and defauld is what is done if all cases can’t do their part of code

points
Submitted by Kamil118
about 9 years