C Datatype range

Type Storage size Value range
char 1 byte -128 to 127
unsigned char 1 byte 0 to 255
int16 2 bytes -32768 to 32767
unsigned int16 2 bytes 0 to 65535
int32 4 bytes -2147483648 to 2147483647
unsigned int32 4 bytes 0 to 4294967295
int64 8 bytes -9223372036854775808 to 9223372036854775807
unsigned int64 8 bytes 0 to 18446744073709551615
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s