O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

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 6. Decision Making

If you are making your way through the book sequentially, you should realize now that you know enough to write a program that has a beginning, middle, and end. It can take input from the users, do some processing, and return or display a result.

This in itself is an achievement. However, a computer is designed to make decisions, and I have not actually covered any decision-making facilities. You have read about the various operators available to test for the truth of a statement, but not how to combine that with C language keywords to actually evaluate a statement.

The aim of this chapter is to provide a thorough and complete discussion of the decision-making statements available to the C programmer.

After reading ...

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