2.7: The char Data Type

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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;


Kaugnay na mga set ng pag-aaral

Dynamic Programming, Greedy Algorithm , Recursion, & Backtracking

View Set

Chapter 11: Being Credible and Using Evidence

View Set

Lesson 8 Protection Against Creditors; Agents and Brokers Course 324

View Set

PRO RES - Different roles of the lawyer

View Set

8. Quiz 2: Usage (Unit 2) - 86.7%

View Set

OSHA - Introduction to Occupational Safety and Health

View Set

Tax Planning: Cost Recovery Concepts (Module 6)

View Set