Demonstration of isxdigit():
D is a hexadecimal digit
H is not a hexadecimal digit
e is a hexadecimal digit
6 is a hexadecimal digit
! is not a hexadecimal digit

Explanation
In this example, we have used if...else statements instead of a conditional operator.

Here, if...else statement does the selection between two strings.

Related Articles:

C library function isdigit( ) In this tutorial, you will learn about C library function isdigit() which is a character handling function used to check whether the argument is a digit(0-9) or...

C Library Function ispunct( ) In this tutorial, you will learn about C library function ispunct() which is a character handling function used to check whether the argument supplied is a printing character other...

C library function isalnum( ) In this tutorial, you will learn about C library function isalnum() which is a character handling function used to check whether...

C library function iscntrl( ) In this tutorial, you will learn about c library function iscntrl() which is a character handling function used to check whether the character supplied...