0347. What is the range of integers?

 

Integer Type

Range

Signed Character

- 27 to 27 – 1 = -128 to 127

Unsigned Character

0 to 28 – 1 = 0 to 255

Signed Short

- 215 to 215 – 1 = -32,768 to 32,767

Unsigned Short

0 to 216 – 1 = 0 to 65,535

Signed Integer

- 231 to 231 – 1 = -2,147,483,648 to 2,147,483,647

Unsigned Integer

0 to 232 – 1 = 0 to 4,294,967,295

Signed Long

- 231 to 231 – 1 = -2,147,483,648 to 2,147,483,647

Unsigned Long

0 to 232 – 1 = 0 to 4,294,967,295