18. How Else Can I Control Input and Output?

With Built-In I/O Functions

image

There are more ways to produce input and output than with the scanf() and printf() functions. This chapter shows you some of C’s built-in I/O functions that you can use to control I/O. You can use these simple functions to build powerful data-entry routines of your own.

These functions offer the primitive ability to input and output one character at a time. Of course, you also can use the %c format specifier with scanf() and printf() for single characters; however, the ...

Get Absolute Beginner’s Guide to C, 2nd 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.