COS 301 Topics Programming Languages

[Pages:17]COS 301 Programming Languages

Sebesta Chapter 6 Data Types

Topics

? Introduction ? Primitive Data Types ? Character String Types ? User-Defined Ordinal Types ? Array Types ? Associative Arrays ? Record Types ? Union Types

What is a Type?

? A type is a collection of values and operations on those values.

? Example: Integer type has values ..., -2, -1, 0, 1, 2, ... and operations +, -, *, /, ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download