1 1 5.5 Using 'printf' Statements for Fancier Printing 1 ================================================== 1 1 For more precise control over the output format than what is provided by 1 'print', use 'printf'. With 'printf' you can specify the width to use 1 for each item, as well as various formatting choices for numbers (such 1 as what output base to use, whether to print an exponent, whether to 1 print a sign, and how many digits to print after the decimal point). 1
1 · Basic Printf Syntax of the 'printf' statement. · Control Letters Format-control letters. · Format Modifiers Format-specification modifiers. · Printf Examples Several examples. 1