Control String:-
It’s used to compare the individual char’s with one character group for each output data item, each character must be % sign fallowing conversion character in indicating the type of data.
These are individual output data items arguments can be written as variables/expressions.
CONVERSION CHARACTERS
|
|
Character
|
Meaning
|
%c
|
Single
character
|
%d
|
Decimal
integer
|
%f
|
Float
value without exponential
|
%e
|
Float
value in exponent form
|
%g
|
Float
type depending on value
|
%i
|
Signed
decimal integer
|
%o
|
An
octal integer without leading zero
|
%s
|
String
|
%u
|
Unsigned
decimal integers
|
%x
|
Hexadecimal
integer without leading ox
|
%hd
|
Short
integer
|
%lu
|
Long
unsigned int
|
%ld
|
Long
integer
|
%lf
|
Double
|
%lf
|
Long
double
|
__________________________________________________________________________________
__________________________________________________________________________________
Post a Comment