O'Reilly logo

C Programming Absolute Beginner’s Guide, Third Edition by Dean Miller, Greg Perry

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

18. Increasing Your Program’s Output (and Input)

In This Chapter

Using putchar() and getchar()

Dealing with the newline consideration

Getting a little faster with getch()

You can produce input and output in more ways 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 capability 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 character I/O functions explained here are a little easier to use, and they provide some capabilities ...

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