Skip to content
Learnearn.uk » A Level Computer Science Home » User Defined Types

User Defined Types

Introduction

What are user defined types?

Sometimes the use of in-built data types / structures are not sufficient to represent the data you are working with. It is therefore necessary to construct your own data types/structures. User defined types can make programs much easier to code, read and debug.

Non-composite vs Composite types

Non composite types are user defined types that contain only one data type, for instance enumerators.

Composite data types are user defined types that contain more than one data type, for instance a record

Enumerators

Pointers

Records

Sets

Challenges

Resources