what is Format specifier in C

 

Format specifier in C:-

Format Specifier

Type

%c

Used to print the character

%d

Used to print the signed integer

%f

Used to print the float values

%i

Used to print the unsigned integer

%l

Used to long integer

%lf

Used to print the double integer

%lu

Used to print the unsigned int or unsigned long integer

%s

Used to print the String

%u

Used to print the unsigned integer

Comments