Introduction
One way to think about programming is that a program applies a series of instructions to a set of data in order to produce some result. For example, consider the software that is used to calculate income taxes. These programs have encode the rules of calculating income taxes. The actual results is based on the data supplied to the software by the user and other data sources. The program is the same no matter who uses it. However, the data used depends on what is entered and thus the final tax balance will be different.
When you write a program, your programs will need to work with data. Depending on the specific data values, your program will produce different results.
In this chapter, we will look:
- memory
- data types, data representation and variables
- how to read data from the user interactively and how to display data back to the user through the use of printf/scanf statements