Wednesday, February 1, 2012

range of signed and unsigned int

Size/Type
Range
1 byte signed
-128 to 127
1 byte unsigned
0 to 255
2 byte signed
-32,768 to 32,767
2 byte unsigned
0 to 65,535
4 byte signed
-2,147,483,648 to 2,147,483,647
4 byte unsigned
0 to 4,294,967,296
8 byte signed
-9,223,372,036,854,775,807 to 9,223,372,036,854,775,807
8 byte unsigned
0 to 18,446,744,073,709,551,615

No comments:

Post a Comment