1/36
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
<cctype>
Header file you must include to use the character-testing functions (isalpha, isdigit, etc.).
Return value of character-testing functions
Technically an int. Nonzero means true, 0 means false.
isalpha / isdigit / isalnum
isalpha is true for a letter. isdigit is true for 0 to 9. isalnum is true for a letter or a digit.
islower / isupper
islower is true for a lowercase letter. isupper is true for an uppercase letter.
isspace
True for whitespace: space, newline (\n), tab (\t), vertical tab (\v).
ispunct vs isprint
ispunct is true for a printable character that is NOT a letter, digit, or space. isprint is true for any printable character, including space.
Loop condition count < size - 1
Stops before the last array element, which holds the null terminator '\0'.