Mega Code Archive
Flags
Flag characters are used to give directives for the output.
You can use multiple flag characters in any order.
- Indicates that output is left justified.
#include
main()
{
printf("%-10.4d\n", 25);
printf("%10.4d\n", 25);
}
0025
0025