C++ Data Types

Integer data type in C++ Language

Compilers                  short              int            long

12 bit Compilers          2 bytes           2 bytes       4 bytes

32 bit Compilers          2 byte             4 bytes       4 byte

C++ Data Types :-

C++ Data type

 

C++ Data Types Range Bytes Format
 signed charunsigned char

short signed int

short unsigned int

signed int

unsigned int

long signed int

long unsigned int

float

double

long double

-128 to +1270 to 255

-32768

0 to 65535

-2147483648 to +2147483647

0 to 4294967295

-2147483648 to +21474883647

0 to 4294967295

-3.4e38 to +3.4e38

-1.7e308 to +1.7e308

-1.7e4932 to 107e4932

 11

2

2

4

4

4

4

4

8

10

 %c%c

%d

%u

%d

%u

%ld

%lu

%f

%lf

%Lf




Follow Us

Contact Us

tutorialworldin@yahoo.com

Back to Top