Number Ranges: Borland C++ Version 5.0

 

Name

Type of Data

Number Range*

Number of Bytes*

Printf Format Specifier

int

Whole Numbers

-2,147,483,648 to 2,147,483,647

4

%d

long

Big whole numbers

-2,147,483,648 to 2,147,483,647

4

%ld

short

Small whole numbers

-32,768 to 32,767

2

%d

float

Decimal numbers

3.4 x 10-38 to 3.4 x 10+38

4

%f

double

Big Decimal numbers

1.7 x 10-4932 to 1.7 x 10+4932

8

%f

char

Holds a single character, e.g. A, Z

0 to 255

1

%c

 

* These values are platform dependent, i.e. you might have different values on a Macintosh v. IBM PC v. IBM Mainframe.