ANSI C DatatypesΒΆ

Datatype

Range Min

Platform (Bits) Max

16

32

64 1

64 2

char

-128

127

1

1

1

1

unsigned char

0

255

1

1

1

1

short

-32768

32767

2

2

2

2

unsigned short

0

65535

2

2

2

2

int

-2.147.483.648

2.147.483.647

2

4

4

4

unsigned int

0

4.294.967.295

2

4

4

4

long

-2.147.483.648

2.147.483.647

4

4

8

4

unsigned long

0

4.294.967.295

4

4

8

4

long long

-9.223.372.036.854.755.807

9.223.372.036.854.755.807

8

8

8

8

unsigned long long

0

18.446.744.073.709.551.615

8

8

8

8

float

0

3.40282347E+38

accuracy: 6-digits

mantissa: 23-Bits

exponent: 8-Bits

4

4

4

4

double

0

1.7976931348623157E+308

accuracy: 15- digits

mantissa: 52-Bits

exponent: 11-Bits

8

8

8

8

long double

0

3.4E-4932 1.1E+4932

acccuracy:19- digits

mantissa: -Bits

exponent: -Bits

10

  1. 3

10

10

10

void*

2

4

8

8

wchar_t

2

2 4

4 5

2

4

2

4

1

In LP64 data model (used in most Unix and Unix like Systems)

2

In LLP64 data model (used in Windows Systems with Microsoft Visual Studio)

3

On Windows System, long double is used as alias for double

4

On Windows Systems

5

On most Unix and Unix like Systems