Strings Flashcards
Literals written using single quotes
Data Type: char
Can only store one character
Characters
outputs the ASCII table in Linux
man ascii
Character functions can be found in the _____ header file
ctype.h
[Character Function] Checks whether the character is alphabetic
isalpha(char c);
[Character Function] Checks whether a character is a decimal digit
isdigit(char c);
[Character Function] Checks if char is alphanumeric
isalnum(char c);
[Character Function] checks if char is in lowercase
islower(char c);
[Character Function] Checks if char is in uppercase
isupper(char c);
[Character Function] Checks if char c is a punctuation
ispunct(char c);
[Character Function] Checks if char is a white space
isspace(char c);
[Character Function] Converts char to lowercase
tolower(char c);
[Character Function] Converts char to uppercase
toupper(char c);
Literals written using double quotes.
An array of characters.
Strings
Strings are terminated by the null character ___
\0
Strings can store up to ____ characters
N-1 (bc a slot is reserved for the terminating character \0)