Question: C language Part a) Write a program that reads a character and prints it ASCII number. Your output format should be similar to the sample
Part a) Write a program that reads a character and prints it ASCII number. Your output format should be similar to the sample below. Part b) Write a program that reads an ASCII character from the user and prints out the corresponding category from the list below. Do not use any hardcoded ASCII values in your code. For example, to check if character ch is the letter A, do: if(ch=' 'A') rather than if(ch=65). Do not use any library call to do these computations (there are library functions that actually solve this question). - Uppercase letter - Lowercase letter - Digit (0 to 9) - Other
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
