Breaking News

C Program to Check Whether a Character is an Alphabet or not

Example: Program to Check Alphabet

#include <stdio.h>
int main()
    char c;
    printf("Enter a character: ");

    if( (c>='a' && c<='z') || (c>='A' && c<='Z'))
        printf("%c is an alphabet.",c);
        printf("%c is not an alphabet.",c);

    return 0;


Enter a character: *
* is not an alphabet

Leave a Reply

Your email address will not be published. Required fields are marked *


Scroll To Top