Basic format specifiers
format specifier | data type |
---|---|
%d or %i |
int integer |
%f |
float single-precision decimal type |
%lf |
double high precision floating point data or number |
%c |
char character |
%s |
for strings strings |
Comments
format specifier | data type |
---|---|
%d or %i |
int integer |
%f |
float single-precision decimal type |
%lf |
double high precision floating point data or number |
%c |
char character |
%s |
for strings strings |