Concepts Of Programming Languages
Concepts Of Programming Languages
12th Edition
ISBN: 9780134997186
Author: Sebesta, Robert W.
Publisher: Pearson,
Question
Book Icon
Chapter 6, Problem 6RQ
Program Plan Intro

Enumeration Types:

  • An enumeration type is a user defined data type where all of the possible values named are provided in the definition itself.
  • Defining and grouping sets of name constants is the method defined by enumerations types, also called as enumeration constants.
  • It is mostly used in case statements and operations on pascal ordinals e.g includes ORD.

Blurred answer
Students have asked these similar questions
What are the design issues for enumeration types?
What are the advantages and disadvantages of user-defined ordinal types as data types? What are the advantages and disadvantages of an associative array?
What benefits do enumeration types provide over a collection of named constants? What benefits does a subrange type have over its base type? When might a string be preferable over a character array?
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning