The pred returns the ordinal value that is the predecessor of the parameter passed to it. It is an error if the parameter does not have a predecessor. The type of the value returned by this function is always the same as the The type of the parameter.
The pred function's only parameter is an expression of ordinal type.
pred(true) returns false
pred(21) returns 20
pred('A') returns '@' (assuming the ASCII or ANSI character set)
Operating Systems: All
Standard Pascal: Yes