When you have a width specification of 1 (like you do in the second line) the output will be H or T. If you have anything else, the output will be HEADS or TAILS. But first, we need to add the %H ...
You may or may not know, but printf is a Turing-complete language, once you exploit all the strange and wonderful format characters in it (especially %n). But who has time to write code as printf ...
Ok, basically I want a field width specifier, only that repeats something.<BR><BR>Such as say 30 empty spaces in a printf or reapeats "-" 30 times, basically to format output.<BR><BR>Thanks for the ...
Trying to do this in a c program:<BR><BR><pre class="ip-ubbcode-code-pre">printf(" Heading1 Heading2 Heading3\n"); printf(" %i %i %i\n", var1, var2, var3);</pre><BR ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results