Question: I need to write a program that inputs a character from the keyboard and tests it with each of the functions ( ) in the
I need to write a program that inputs a character from the keyboard and tests it with each of the functions (
Enter a character:
Test isdigit( ) function): Now, use isdigit() function to test whether user has entered a character or not as following:
if (isdigit(case) == 0)
{
printf("user has entered the character: %c ", );
}
The functions to test with are:
isblank(), islower(), iscntrl()
The display should look similar to this:
Enter a character: c
User has entered the character: c
Isblank(c) = 0
Islower(c) = 0
Iscntrl(c) = 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
