Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

isspace - Find whether the given character is whitespace or not in C

Check whether the given input of one of the following:
' ' space (SPC)
'\v' vertical tab (VT)
'\r' carriage return (CR)
'\f' feed (FF)
'\n' newline (LF)
'\t' horizontal tab (TAB)

#include<stdio.h>
#include<ctype.h>
 
int main()
{
    char a;
    scanf( "%c", &a );
    if( isspace(a) )
        printf( "This is an Alphabetic character: %c\n", a );
    else
        printf( "This is NOT an Alphabetic character: %c\n", a );
    return 0;
}