Write a character literal representing the (upper case) letter A. |
‘A’ |
Write a character literal representing a comma. |
‘,’ |
Write a character literal representing the digit 1. |
‘1’ |
Write a literal representing the character whose ASCII value is 65. |
‘A’ |
Write a literal representing the largest character value . Suppose we are using unsigned one-byte characters . |
255 |
Declare a character variable named c. |
char c; |
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 |
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 |
2.7- The char Data Type
Share This
Unfinished tasks keep piling up?
Let us complete them for you. Quickly and professionally.
Check Price