2.7 The char Data Type Flashcards
1
Q
How is the char data type used?
A
Used to store individual characters.
2
Q
How many characters can a char data type hold?
A
Only one.
3
Q
How are character literals enclosed in C++?
A
Enclosed in single quotation marks.
4
Q
How are string literals enclosed in C++?
A
Enclosed in double quotation marks.
5
Q
How many byte of memory does the char data type uses?
A
Typically 1 byte of memory.
6
Q
What does the null terminator do?
A
It marks the end of the string.
7
Q
\0
A
Null terminator or null character.