We have seen the predefined, simple type identifiers Boolean, char, integer and Real. By using these type identifiers you can refer to the existing types that they represent. We now show how new ordinal types can be created by two mechanisms: the enumerated type and the subrange type. The enumerated type creates a new type that is unrelated to any other type, while the subrange type creates a new type that has a subset of the values of another existing ordinal type.
KeywordsType Color Relational Operator Closed Interval Programming Technique Memory Space
Unable to display preview. Download preview PDF.