DamnSchool
Data type is the type of the data, that are going to access within the program. C support different data types, each data type may have predefined memory requirement and storage representation.

Data Type Memory (bytes) Range Format Specifier
Short int 2 -32,768 to 32,767 %hd
unsigned short int 2 0 to 65,535 %hu
unsigned int 4 0 to 4,294,967,295 %u
int 4 -2,147,483,648 to 2,147,483,647 %d
long int 4 0 to 4,294,967,295 %ld
unsigned long int 4 0 to 4,294,967,295 %lu
long long int 8 -(2E-63) to (2E63)-1 %lld
unsigned long long int 8 0 to 18,446,744,073,709,551,615 %llu
signed char 1 -128 to 127 %c
unsigned char 1 0 to 255 %c
float 4 1.2E-38 to 3.4E+38 %f
double 8 2.3E-308 to 1.7E+308 %lf
long double 12 3.4E-4932 to 1.1E+4932 %lf

< Previous Next 

Privacy Policy Terms of Service About
Creative Commons License
This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.