Check The Programming Section
The plain characters are very straight forward and displayed as it is into the screen without applying any format conversion. Consider the printf() statement given below:
printf(“Hello, World!”);
In the above statement printf() displayed the given string as it is in the computer screen. When we used a format specifier inside printf() it comes with following format:
%[flags][width][.precision][length]specifier
Where the specifier character at the end is the most significant component, since it defines the type and the interpretation of its corresponding argument and the details of the specifier character is listed below:
The format specifier can also contain sub-specifiers: flags, width, .precision and modifiers (in that order), which are optional and follow these specifications:
The length sub-specifier modifies the length of the data type. If any of the listed length sub-specifier is preceded with a format specifier then values are converted to a particular type depending on the length sub-specifier.