0

What's the result if you don't use break in switch case?

21st Aug 2019, 12:34 PM
Mumin Lee
Mumin Lee - avatar
2 Respuestas
+ 2
give it a try in the playground :)
21st Aug 2019, 12:36 PM
Brave Tea
Brave Tea - avatar
+ 3
Every case that follows the fitting one, will be executed as well. Not because it is a good technique but just to check it out, I have written a scrabble value calculator relying merely on this 'fall-through'. :) Step by step the missing points for a letter's value are added. https://code.sololearn.com/cL5go65DG52m/?ref=app
21st Aug 2019, 12:52 PM
HonFu
HonFu - avatar