C program to check whether a character is a vowel or consonant: In our program user will input a character, and we will check whether it is an alphabet or not. If it is an alphabet, then we check whether it is a vowel or a consonant. This code checks whether an input alphabet is a vowel or not. Both lower-case and upper-case are checked.