Integer type (typically 4 bytes, -2,147,483,648 to 2,147,483,647)
1st Parameter
The character to be tested, passed as an `int`
Read more about parameters of isascii in parameters section
The isasciifunction in C language Checks whether the character is an ASCII character.
The isascii function tests whether c is a 7-bit unsigned char value that fits into the ASCII character set. This function is a BSD extension and not part of ISO C.
The isasciifunction takes 1
parameter:
•
int `c`: The character to be tested, passed as an `int`
Checks if the given character `c` is an ASCII character, meaning its value lies within the range 0 to 127. Returns a nonzero value if `c` is an ASCII character, and `0` otherwise.
The isascii function return value :
Returns non-zero if the character is an ASCII character (0-127), 0 otherwise
Output
This example demonstrates basic usage of isascii with various characters, including a non-ASCII character.