Fundamental Data Types: Size : Range

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Fundamental data types:

Name Description Size* Range*


signed: -128 to 127
char Character or small integer. 1byte
unsigned: 0 to 255
signed: -2147483648 to
1word
int Integer.
4bytes
2147483647
unsigned: 0 to 4294967295
short int signed: -32768 to 32767
Short Integer. 2bytes
short unsigned: 0 to 65535
signed: -2147483648 to
long int
long
Long integer. 4bytes 2147483647
unsigned: 0 to 4294967295
Boolean value. It can take one of two
bool values: true or false. 1byte true or false
float Floating point number. 4bytes 3.4e +/- 38 (7 digits)
Double precision floating point
double number. 8bytes 1.7e +/- 308 (15 digits)
Long double precision floating point
long double number. 10bytes 1.2e +/- 4932 (19 digits)
wchar_t Wide character. 2bytes 1 wide character

* The values of columns Size and Range depend on the architecture of the system where
the program is compiled and executed. The values included here are the most common
ones found in 32bit systems.

You might also like