▲ 5 ▼ True or False: If a match expression doesn't match any case pattern and there's no default case, control falls through a switch statement. (learn.microsoft.com) submitted 3 years ago by jim_stark@programming.dev to c/dotnet@programming.dev 6 comments fedilink hide all child comments What does "control falls through a switch statement" mean in this context? Control just moves on to the next statement? I thought if there is no match and a default case doesn't exist it will raise an exception. Is it not true?
[–] manitcor@lemmy.intai.tech 1 point 3 years ago (1 child) Means it will be skipped entirely permalink fedilink source hideshow 1 child comment replies: [–] jim_stark@programming.dev [S] 1 point 3 years ago I see, thank you! I got confused with "control falls through a switch statement" and "C++ style fall through in switch statements". permalink fedilink source parent
[–] jim_stark@programming.dev [S] 1 point 3 years ago I see, thank you! I got confused with "control falls through a switch statement" and "C++ style fall through in switch statements". permalink fedilink source parent