C Program to Check Vowel or Consonant Using Function

C Program to check vowel or consonant using function for beginners to understand programming concepts in c like function and decision making a statement like if else statement.

Function Definition

A function is a collection of statements that work together to complete a task. 

Every C program has at least one function, main(), and even the simplest programs can define more functions. 

The name, return type, and parameters of a function are all specified in the function declaration.

Vowels Definition

The one most prominent sound in a syllable; one of a class of speech sounds in which the oral part of the breath channel is not blocked and is not constricted enough to cause audible friction broadly. 

A vowel is a type of speech sound produced by altering the shape of the upper vocal tract, which is the area of the mouth above the tongue. 

Vowels are the letters A, E, I, O, and U.

Consonants Definition

Not a vowel, but one of the speech sounds or letters of the alphabet. 

Consonants are pronounced by preventing air from freely flowing through the mouth, particularly by closing the lips or pressing the tongue against the teeth. 

Consonants are sounds made with the articulators close to each other. 

That is, they are made with a close articulation, ranging from completely together to only approximating each other. 

When consonants are far apart and vibrating, they are said to be voiceless; when they are close together and vibrating, they are said to be voiced.

#include <stdio.h>
int func(char a);
int main()
char ch;
printf("Enter The Letter\n");
scanf(" %c", &ch);
printf("\n %c is a Vowel", ch);
printf("\n %c is a Consonant", ch);
return 0;
int func(char c)
if (c >= 'A' && c <= 'Z')
c = c + 32; 
if (c == 'a' || c == 'e' || c == 'i' 
|| c == 'o' || c == 'u')
return 1;
return 0;


Enter The Letter

r is a Consonant