C program to find the character type.
The ctype.h header provides a set of functions for testing and converting individual characters. Each function takes an int (the ASCII value of a character) and returns a non-zero value (true) if the character belongs to a certain class. They are used in parsers, tokenizers, input validation, and any code that processes text character by …