+ 1
what is fallthrough? where is used? and y it is necessary?
5 Respuestas
+ 15
In C they fall through in other words it behaves different to expectations Swift added fall through for those who know what to expect. From an anomaly to a function . Something to do with conditionals and loops continuing previous function while going to next function simultaneously
+ 15
Well, at least that is what I gathered from my studies
+ 11
the fallthrough keyword moves code execution directly to the statements inside the next (or default) case block.
it is used when you want your code to continue execute the next code in switch statement.
it is not necessery.
+ 3
it's not always necessary,, in some cases you want to use fall through.
+ 2
Use it when you need go to the next case in switch.