About Lesson
Format Specifier
Format specifier is a special character followed by a percentile(%) symbol that is generally found any formatted function like printf() and scanf(). They are called as format specifiers because they are specifying the format of the data that must be accepted from the user or the format of data that should be displayed to the user.
The following are various format specifiers of C Language:
%c |
Character |
%d, %i |
signed decimal integers |
%f |
decimal floating point |
%s |
string of characters |