Input and Output Overview

In order for most programs to do something useful, they need to be able to communicate with users. They must be able to display the output of their calculations and they must be able to get input from the user. In this section, we will explain how to display text data using printf and how to get data from the user using scanf. File input and output will also be discussed. This allows a program to save data to a disk and retrieve that data again from the disk.

next


 home                      table of contents                      about