C-17-Q063mediumsingle_mcq
With input a, the match-based vowel/consonant program prints:
With input a, the match-based vowel/consonant program prints:
- aa is a vowel
- ba is a consonant
- cinvalid letter
- dnothing
ব্যাখ্যা
The character a matches one of the explicit vowel cases, so the program reports it as a vowel. The default consonant branch is never reached for vowel inputs.