O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

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 5. Standard Input and Output

Working with standard input and output (I/O) is often a requirement for any real-world C application. Although practically all the examples in this book so far have had output (in other words, they printed messages), they have also relied entirely on set values within the code. This is not only boring (apologies for that) but impractical. In this chapter you'll see how to make your applications interactive by taking and responding to user input.

You'll first learn and practice taking a single character input and reacting to that. Next, you'll see how to read in an entire word at a time. Afterwards, the chapter moves on to handling numeric and then multiple inputs. Finally, validating input and more advanced ...

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