Saltar al contenido

Registros

English

Different types under one name

  • AS topic 10.1 asks you to define a record: one identifier that holds several fields, and the fields can have different types.
  • A pet has a name (a STRING) and an age (an INTEGER). A record keeps both together under one name.
  • TYPE … ENDTYPE describes the record and declares each field.

A record type groups Name, Age and Mark; dot notation reaches each field

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP