Pages

Adhexa

Thursday, July 22, 2010

Size and range of basic fundamental data types

char Character or small integer. 1byte signed: -128 to 127
unsigned: 0 to 255

short int
(short) Short Integer. 2bytes signed: -32768 to 32767
unsigned: 0 to 65535

int Integer. 4bytes signed: -2147483648 to 2147483647
unsigned: 0 to 4294967295

long int
(long) Long integer. 4bytes signed: -2147483648 to 2147483647
unsigned: 0 to 4294967295

bool It can take one of two values: true(1) or false(0). 1byte true(1) or false(0)

float Floating point number. 4bytes +/- 3.4e +/- 38 (~7 digits)

double Double precision floating point number. 8bytes +/- 1.7e +/- 308 (~15 digits)

long double Long double precision floating point number. 8bytes +/- 1.7e +/- 308 (~15 digits)

No comments:

Post a Comment