isxdigit - Find whether the given character is HexaDecimal Digit or not in C

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