C program to print all printable characters using the isprint() function
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Here, we will print all printable characters available in C using the isprint() library function.
The isprint() function checks whether a character is a printable character or not. This function is defined in ctype.h header file.
Syntax:
The function accepts a parameter and returns non-zero integer, if not it returns 0.
Program:
The source code to print all printable characters using the isprint() function is given below. The given program is compiled and executed using GCC compile on UBUNTU 18.04 OS successfully.
Output:
Explanation:
Here, we printed all printable characters available in C language using the isprint() library function on the console screen.
need an explanation for this answer? contact us directly to get an explanation for this answer