6. Assignment 10
WAP to implement your own isxdigit() function
Input: Read an ASCII character ‘ch’
7. Assignment 10
WAP to implement your own isxdigit() function
Input: Read an ASCII character ‘ch’
Output:
8. Assignment 10
WAP to implement your own isxdigit() function
Input: Read an ASCII character ‘ch’
Output: 0 or non-zero value based on condition success or
failure.
9. Assignment 10
What is isxdigit()?
isxdigit() checks for hexadecimal digits, that is, one of
0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F.
16. Assignment 10
Example’s:
⮚Input: ch = ‘a’
Output: The character ‘a’ is a hexadecimal digit.
⮚Input: ch = ‘*’
Output: The character ‘*’ is not a hexadecimal digit.
17. Assignment 10
Example’s:
⮚Input: ch = ‘a’
Output: The character ‘a’ is a hexadecimal digit.
⮚Input: ch = ‘*’
Output: The character ‘*’ is not a hexadecimal digit.
⮚Input: ch = ‘F’
18. Assignment 10
Example’s:
⮚Input: ch = ‘a’
Output: The character ‘a’ is a hexadecimal digit.
⮚Input: ch = ‘*’
Output: The character ‘*’ is not a hexadecimal digit.
⮚Input: ch = ‘F’
⮚Output: The character ‘F’ is a hexadecimal digit.