Advertisement

Case Statement

  • William Buchanan
Chapter
Part of the Macmillan Master Series book series (PMSC)

Abstract

The case statement is used when there are multiple decisions to be made. It is normally used to replace the if statement when there are many routes of execution the program execution can take. The syntax of case is as follows.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© William Buchanan 1998

Authors and Affiliations

  • William Buchanan
    • 1
  1. 1.Department of Electrical and Electronic EngineeringNapier UniversityEdinburghUK

Personalised recommendations