...
/Format Specifiers: Width, Separator, Precision and Flags
Format Specifiers: Width, Separator, Precision and Flags
This lesson explains four more parts of the format specifier: width, separator, precision and flags.
We'll cover the following...
We'll cover the following...
Width #
This part determines the width in characters that the argument is displayed in. If the width is specified as the character *, then the actual width value is read from the next argument (that argument must be an int). If width is a negative value, then the - flag is assumed.
Separator #
The comma character ...