Formatting with printf in C
Formatting with printf in C: "We could right justify our output using the format specifiers. The field-width specifier tells printf( ) how many columns on screen should be used while printing a value(as in %wd),here the value is right justified and is padded with blanks on the left. If we include the minus sign in format specifier (as in %-wd), this means left justification is desired and the value will be padded with blanks on the right."

0 Comments:
Post a Comment
<< Home