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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.