Home » C Programs » isalpha in C

isalpha in C

Isaplha in c program for beginners. An alphabetic character is determined using the isalpha() function. The isalpha() function in C programming determines if a letter is an alphabet (from a to z and A-Z) or not. isalpha() delivers a non-zero integer if a character it receives is an alphabet; otherwise, it returns 0.

Ctype Function in C

The ctype in the h header file has built-in methods for handling Strings in C and C++. To handle characters in C/C++, h/cctype> have built-in methods, respectively. There are two sorts of characters: The characters that are shown on the terminal are known as printable characters.

isalpha in C

#include <stdio.h>
#include <ctype.h>
int main()
{
    char c;
    c = 'Q';
    printf("\nAfter Confirmed It is Uppercase %d", isalpha(c));
    c = 'q';
    printf("\nAfter Confirmed It is Lowercase%d", isalpha(c));
    c='+';
    printf("\nAfter Confirmed It is Not Letter %d", isalpha(c));
    return 0;
}