Given this code fragment:
What is the output?
A switch case continues into the following case unless it encounters break. Processing "mon" increments the value and falls through to the "wed" case, while "sun" and "sat" each decrement it. The final value printed is 3.
switch
break
"mon"
"wed"
"sun"
"sat"
3
Community Discussion