Team Emertxe
Function and Pointer
Basics
Assignment 10
Assignment 10
Assignment 10
WAP to implement your own isxdigit() function
Assignment 10
WAP to implement your own isxdigit() function
Input:
Assignment 10
WAP to implement your own isxdigit() function
Input: Read an ASCII character ‘ch’
Assignment 10
WAP to implement your own isxdigit() function
Input: Read an ASCII character ‘ch’
Output:
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.
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.
Assignment 10
What is the ASCII range for hexadecimal digits?
Assignment 10
What is the ASCII range for hexadecimal digits?
 Hexadecimal digit ranges from ‘0’ to ‘9’ or ‘a’ to ‘f’ or ‘A’ to
‘F’.
Assignment 10
Example’s:
Assignment 10
Example’s:
⮚Input: ch = ‘a’
Assignment 10
Example’s:
⮚Input: ch = ‘a’
Output: The character ‘a’ is a hexadecimal digit.
Assignment 10
Example’s:
⮚Input: ch = ‘a’
Output: The character ‘a’ is a hexadecimal digit.
⮚Input: ch = ‘*’
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.
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’
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.
Assignment 10
Sample execution:-
Assignment 10
Sample execution:-
Assignment 10
Sample execution:-
Assignment 10
Sample execution:-
Assignment 10
Pre-requisites:-
Assignment 10
Pre-requisites:-
⮚Functions
Assignment 10
Pre-requisites:-
⮚Functions
Objective:-
Assignment 10
Pre-requisites:-
⮚Functions
Objective:-
⮚To understand the concept of Functions.
Team Emertxe
Thank you

10_isxdigit.pdf