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> ...

Get C How to Program, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.