Wednesday, December 19, 2007

How to use the BASIC DATA TYPE

How to use the BASIC DATA TYPE

Use of the BASIC DATA TYPE

    The Structure of a C++ Program: Basic Data Type

DATA TYPE

C++ KEYWORD

BITS

RANGE

character

char

8

0 to 255

floating point

float

32

Approximately 6 digit of precision

double floating point

double

64

Approximately 12 digit of precision

integer

int

16

-32768 to 32767

short integer

short

8

-128 to 127

long integer

long

32

-4294967296 to

4294967295

unsigned integer

unsigned

16

0 to 65535

No comments: