2.7- The char Data Type

Your page rank:

Total word count: 168
Pages: 1

Calculate the Price

- -
275 words
Looking for Expert Opinion?
Let us have a look at your work and suggest how to improve it!
Get a Consultant

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

Share This
Flashcard

More flashcards like this

NCLEX 10000 Integumentary Disorders

When assessing a client with partial-thickness burns over 60% of the body, which finding should the nurse report immediately? a) ...

Read more

NCLEX 300-NEURO

A client with amyotrophic lateral sclerosis (ALS) tells the nurse, "Sometimes I feel so frustrated. I can’t do anything without ...

Read more

NASM Flashcards

Which of the following is the process of getting oxygen from the environment to the tissues of the body? Diffusion ...

Read more

Unfinished tasks keep piling up?

Let us complete them for you. Quickly and professionally.

Check Price

Successful message
sending