Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
1st Parameter
The character to be tested, passed as an `unsigned char` cast to an `int`, or `EOF`
Read more about parameters of isprint in parameters section
The isprintfunction in C language Checks whether the character is printable, including space.
The isprint function tests whether c is a printing character, including space (' '). In the default C locale, it includes all characters for which isgraph returns true, plus the space character.
The isprintfunction takes 1
parameter:
•
int `c`: The character to be tested, passed as an `unsigned char` cast to an `int`, or `EOF`
Checks if the given character `c` is a printable character, including space (`' '`). Returns a nonzero value if `c` is printable, and `0` otherwise.
The isprint function return value :
Returns non-zero if the character is printable (including space), 0 otherwise
Output
This example demonstrates basic usage of isprint with various characters.