CP2003 Lecture Notes - Primitive Types

See ``The Anatomy of Programming Languages'' by Fischer and Grodzinsky (Chapter 5) or ``Programming Language Concepts and Paradigms'' by David Watt (Chapter 2).

Values

A value is anything that may be evaluated, stored, incorporated in a data structure or object, passed as an argument, returned, etc. For examples, what kinds of values exist in C++?

Types

What is a type?

Primitive Hardware Types

These are basic types, often supported at the `hardware' level.

Some logical operations on these entities are possible, such as: Some groups of bits, however, have `interpretations': Other encodings include floating point, packed decimal, 4 bit digits and character codes such as:


Copyright © 1998. Alan McCabe. All rights reserved.