Sun WorkShop Compiler C 5.0 User's Guide

(6.1.2.5)The representations and sets of values of the various types of integers:

Table B-1 Representations and Sets of Values of Integers

Integer 

Bits 

Minimum 

Maximum 

char (SPARC) (Intel)

-128 

127 

 signed char

-128 

127 

 unsigned char

255 

 short

16 

-32768 

32767 

 signed short

16 

-32768 

32767 

 unsigned short

16 

65535 

 int

32 

-2147483648 

2147483647 

 signed int

32 

-2147483648 

2147483647 

 unsigned int

32 

4294967295 

 long (SPARC) v8

32 

-2147483648 

2147483647 

long (SPARC) v9 64 -9223372036854775808 9223372036854775807
 signed long (SPARC)v8

32 

-2147483648 

2147483647 

signed long (SPARC) v9 64 -9223372036854775808 9223372036854775807
 unsigned long (SPARC) v8

32 

4294967295 

unsigned long (SPARC) v9 64 0 18446744073709551615
long long [Not valid in -Xc mode]

64 

-9223372036854775808 

9223372036854775807 

 signed long long1

64 

-9223372036854775808 

9223372036854775807 

 unsigned long long1

64 

18446744073709551615