%06.6ld format specifier- what does it do?
Posted on 2006-05-08
In the following program, I was trying to
experiment with the %06.6ld format specifier.
I was thinking that even if the number "passed"
to it was > 6 digits, it would cut off at 6, unlike
the %06ld specifier.
printf("Enter a long:\n");
that was not the case. For the number 1234567,
Enter a long:
So...does this mean that %06.6ld has no effect?
or, does it do something else?