C-17-Q064mediumsingle_mcq
With input d, the match-based vowel/consonant program prints:
With input d, the match-based vowel/consonant program prints:
- ad is a vowel
- bd is a consonant
- cinvalid letter
- dnothing
ব্যাখ্যা
The character d is not among the listed vowel cases (a, e, i, o, u), so control falls through to the wildcard case _:, which classifies it as a consonant.