What are the white space characters that are used isspace() in C ?
Annie Sanjana Answered question May 12, 2023
The isspace() function in C is used to check if a given character is a white space character. In C, white space characters include the following:
- Space:
' ' - Horizontal tab:
'\t' - Vertical tab:
'\v' - Newline:
'\n' - Carriage return:
'\r' - Form feed:
'\f'
These characters are defined in the <ctype.h> header file, which provides various functions for character classification, including isspace(). The function returns a non-zero value if the character is a white space character; otherwise, it returns zero.
Annie Sanjana Answered question May 12, 2023
