isxdigit Function

  • It test the given character, whether it is a hexadecimal digit (0 to 9,A to F or a to f)
  • It returns nonzero if ch is a hexadecimal digit; otherwise zero is returned.

  • Syntax :
    int isxdigit(int ch);

    Example

    
    #include <ctype.h>
    
    #include <stdio.h>
    
      void main() {
    
    	char ch='A';
    
    	if(isxdigit(ch)) {
    
    		printf("%c is  hexadecimal digit\n", ch);
    
    	}
    
    }
    
    

    Output