Format specifier in C languege
Format specifier for accept or display any types of data
%d - Used for accept or display the integer value.
%c - Used for accept or display the character value.
%f - Used for accept or display the float value.
%lf - Used for accept or display the double value.
%s - Used for accept or display the string value.
Some Examples Data types value :-
Integer examples -
32, 5, 098, 345, 893274 etc.
Character examples -
'r' , 'E' , 'o' , '5' , '9' , 'w' etc.
Float examples -
23.4 , 2.0 , 5.9 , 8495.78 etc.
Double examples -
54.324 , 3.0000 , 2.8754 , 9.222222 etc.
String Examples -
"prem" , "india" , "kumar" , "nishad" etc.
Comments
Post a Comment