CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Course Documents
Next
Keyword Index
Data Types
Handout:
PDF File
(21pp., 811K)
Outline
Data Types
Design Issues for All Data Types
Primitive Data Types
Boolean
Integer
Fixed Point (Decimal) Types
Floating Point Types
Character String Types
Examples of String Support
Other String Examples
String Length Options
Evaluation of String Types
User-Defined Ordinal Types
Enumeration Types
Subrange Types
Evaluation of Ordinal Types
Type Constructors
Arrays
Array Indexing
Array Subscript Types
Four Categories of Arrays
Static Arrays
Fixed Stack-Dynamic Arrays
Stack-Dynamic Arrays
Heap-Dynamic Arrays
Number of Array Subscripts
Array Initialization
Array Operations
Array Slices
Implementation of Arrays
Associative Arrays
Perl Associative Arrays
Records
Record Definition Syntax
Record Field References
Record Operations
Comparing Records and Arrays
Unions
Union Examples
More Union Examples
Union Type-Checking Problems
Ada Discriminated Unions
Free Unions
Evaluation of Unions
Sets
Set Examples
Set Examples (cont.)
Evaluation of Sets
Pointers
Pointer Design Issues
Fundamental Pointer Operations
Problems with Pointers
Dangling Pointers
Memory Leaks
Double Deallocation
Aliasing
Pointer Examples
Pointer Examples (cont.)
Pointer Examples (cont.)
Evaluation of Pointers