An array can store only countable things, whereas a record can store anything. A record can only store countable things, whereas an array can store anything. Arrays are for combining variables of different type, records store variables of the same type. Records are for combining variables of different type, arrays store variables of the same type.
Nothing, this is done automatically. Maximum := max; return max; This function has no output and will not return anything!
Var a: record number: integer; name: string; year: integer; end; Var a: array[1..1000] of record name: string; year: integer; end; Var a: record number: array[1..1000] of integer; name: array[1..1000] of string; year: array[1..1000] of integer; end; Var a: array[1..1000] of record name: array[1..1000] of string; year: array[1..1000] of integer; end;