O'Reilly logo

C How to Program, Fifth Edition by H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. C Formatted Input/Output

 

All the news that’s fit to print.

 
 --Adolph S. Ochs
 

What mad pursuit? What struggle to escape?

 
 --John Keats
 

Remove not the landmark on the boundary of the fields.

 
 --Amenemope
<feature><title>Objectives</title>

In this chapter, you will learn:

<objective>

To use input and output streams.

</objective>
<objective>

To use all print formatting capabilities.

</objective>
<objective>

To use all input formatting capabilities.

</objective>
<objective>

To print with field widths and precisions.

</objective>
<objective>

To use formatting flags in the printf format control string.

</objective>
<objective>

To output literals and escape sequences.

</objective>
<objective>

To format input using scanf.

</objective>
</feature>
<feature> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required