Write a C program to check graphical character

0

Here's an example of code that uses the isgraph() function to check if a given character is a graphic character:

In this example, the character 'A' is passed as an argument to the isgraph() function. If the character is a graphic character, the program will output "The character 'A' is a graphic character." If the character is not a graphic character, the program will output "The character 'A' is not a graphic character."


You can also check multiple characters by looping through the string and check each character one by one.

This code will check each character of the string "Hello World!" and print whether it is a graphic character or not.

Post a Comment

0Comments
Post a Comment (0)