Chapter 5

Decision Statements

Chapter Outline
5.1  INTRODUCTION

A program is nothing but the execution of a sequence of one or more instructions. In a monolithic program, the sequences of instructions are executed in the same order as they appear in the program. Quite often, it is desirable to alter the sequence of the statements in the program depending upon certain circumstances. In practical applications, there are a number of situations where one has to change the decisions based on the requirements/conditions. ...

Get Programming in C++, 2nd Edition now with O’Reilly online learning.

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