Dec 21, 2015, 11:33 PM
Post #1 of 2
Quick question on format specifiers
Was coding such a line:
I understand that the specifier %d is for decimal numbers, whereas %s is for strings. Just wondering, what are the implications of displaying "100" as a string instead of a variable, since in this case the output when using either specifiers are the same?
printf "The formatted number is (%10d)\n", 100;