CHAPTER 3

image

Making Decisions

In this chapter, you’ll greatly extend the range of programs you can write and the flexibility you can build into them by adding one of the most powerful programming tools to your inventory: the ability to compare the values of expressions and, based on the outcome, choose to execute one set of statements or another. This means that you will be able to control the sequence in which statements are executed.

In this chapter you’ll learn:

  • How to make decisions based on arithmetic comparisons
  • What logical operators are and how you can use them
  • More about reading data from the keyboard
  • How you can write a program that can ...

Get Beginning C, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.