Latest :

C Program To Check Whether A Character Is Alphabet or Not

C Program to check for an alphabet or not – In this particular article, we will detail in on the standard method used to check for an alphabet or not in C programming.

Suitable examples and sample programs have also been added so that you can understand the whole thing very clearly. The compiler has also been added with which you can execute it yourself.

C Program To Check Whether A Character Is Alphabet or Not

As you can see, funnily enough, these are the alphabet in the English language. There are a total of 26 of them.

Thus, the way to check for an alphabet is as follows:

Using Standard Method

1)Read the entered character and store it in the variable ‘ch’ which is a character data type.

2)Check whether the ASCII value of the entered character is in the range between 65 to 90 or 97 to 122 or not using “if “condition.

3)If it is in the range then it prints “alphabet” otherwise prints “not alphabet”.

x

Check Also

C Program To Find Reverse Of An Array – C Programs

C program to find the reverse of an array – In this article, we will ...