Format Specifiers -
These tell about the data type that we enter in the program.
We have to specify the data every time we input the values. There is specific formats for every data type.
These are as follows -

Storage size of the respective data type -
C Data types / storage Size | Range |
char / 1 | –127 to 127 |
int / 2 | –32,767 to 32,767 |
float / 4 | 1E–37 to 1E+37 with six digits of precision |
double / 8 | 1E–37 to 1E+37 with ten digits of precision |
long double / 10 | 1E–37 to 1E+37 with ten digits of precision |
long int / 4 | –2,147,483,647 to 2,147,483,647 |
short int / 2 | –32,767 to 32,767 |
unsigned short int / 2 | 0 to 65,535 |
signed short int / 2 | –32,767 to 32,767 |
long long int / 8 | –(2^(63) –1) to 2^(63) –1 |
signed long int / 4 | –2,147,483,647 to 2,147,483,647 |
unsigned long int / 4 | 0 to 4,294,967,295 |
unsigned long long int / 8 | 2(power)64 –1 |
0 Comments