character format specifier in c code example

Example 1: what are format specifiers

it is used during taking input and out put

Int ("%d"): 
Long ("%ld"):
Char ("%c"): 
Float ("%f"): 
Double ("%lf")

example:

char ch = 'd';
double d = 234.432;
printf("%c %lf", ch, d);

char ch;
double d;
scanf("%c %lf", &ch, &d);

Example 2: double data type format in c

%lf you can try

Example 3: format specifiers in c

follow this for best answer with example: 
---------------------------------------------
https://www.freecodecamp.org/news/format-specifiers-in-c/
https://www.tutorialspoint.com/format-specifiers-in-c

Tags:

Misc Example