Science, asked by raghavmummy3454, 1 year ago

What do you mean by fall through condition in switch case?give example?

Answers

Answered by smartykiller
1
This program classifies a given alphabet and prints whether it is in the first four letters and whether it is a vowel or a consonant. Here we can observe that we are not using the break statement for every case statement. When there is no break, the execution continues until it encounters a break or if it reaches the end of the switch statement. That is the reason why when the alphabet is 'A', it prints both The alphabet 'A' is in first four letters and The alphabet 'A' is an vowel. At LINE A, it simply falls through to the next case.

Hope its help you
===÷÷☺☺☺÷☺☺
Similar questions