Quote:
|
Originally Posted by Kris Verdeyen
The 3 is the number of displayed digits.
If you use a number there, it will print leading zeros to fill up the number, up to 3. Instead of '1', it will print '001';
|
Actually, %3d should print ' 1' (space, space, one.) You would need %03d to get '001'.