0% found this document useful (0 votes)
26 views

Fundamental Data Types: Size : Range

This document summarizes common fundamental data types in C/C++ including their name, description, typical size in bytes, and value range. It lists integer types like char, int, short, long, and boolean types as well as floating point types like float, double, and long double along with their common sizes of 1, 2, 4, or 8 bytes and typical value ranges like -128 to 127 for chars or -2147483648 to 2147483647 for ints.

Uploaded by

yuyuyu tututu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Fundamental Data Types: Size : Range

This document summarizes common fundamental data types in C/C++ including their name, description, typical size in bytes, and value range. It lists integer types like char, int, short, long, and boolean types as well as floating point types like float, double, and long double along with their common sizes of 1, 2, 4, or 8 bytes and typical value ranges like -128 to 127 for chars or -2147483648 to 2147483647 for ints.

Uploaded by

yuyuyu tututu
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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