You are on page 1of 13

Lists

} const
maxlength = 100 { some suitable constant };
} type
LIST = record
elements: array[1..maxlength] of elementtype;
last: integer
end;
position = integer;
} function END ( var L: LIST ): position;
begin
return (L.last + 1)
end;
} (*L1).a[0]
} L1->a[0]

} First and second are equivalent.

You might also like