2.7: The char Data Type
Write a character literal representing a comma.
','
Write a character literal representing the digit 1.
'1'
Write a character literal representing the (upper case) letter A.
'A'
Write a literal representing the character whose ASCII value is 65.
'A'
How many bytes are needed to store: 'n' ? How many bytes are needed to store: "n" ? How many bytes are needed to store: '\n' ? How many bytes are needed to store: "\n", ?
1 2 1 2
Write a literal representing the largest character value . Suppose we are using unsigned one-byte characters .
255
What's the difference in UNICODE value between 'E' and 'A'? (consult a table of UNICODE values): What's the difference in UNICODE value between 'e' and 'a'? (consult a table of UNICODE values): What's the difference in UNICODE value between '3' and '0'? (consult a table of UNICODE values): What's the difference in UNICODE value between '6' and '0'? (consult a table of UNICODE values):
4 4 3 6
Declare a character variable named c.
char c;
