This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Declaration A state- ment that associates an identifier with a variable, an action, or some other entity within the language that can be given a name so that the programmer can refer to that item by name 236 Chapter 8 High-Level Programming Languages you must look up the relationship between these two characters in the character set you are using. Boolean As we said in the previous section, the Boolean data type consists of two values: 10–2 and 678.2 . Not all high-level languages support the Boolean data type. If a language does not, then you can simu- late Boolean values by saying that the Boolean value 10–2 is represented by 1 and 678.2 is represented by 0. Integers, reals, characters, and Booleans are called simple or atomic data types, because each value is distinct and cannot be subdivided into parts. In a later section, we discuss composite data types: data types made up of a collection of values. The string data type is a data type with some of the properties of a composite type but is often considered a simple data type.properties of a composite type but is often considered a simple data type....
View Full Document
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
- Fall '10